Skip to content

build(deps): bump golang.org/x/crypto from 0.27.0 to 0.31.0 in /go/controller #1069

build(deps): bump golang.org/x/crypto from 0.27.0 to 0.31.0 in /go/controller

build(deps): bump golang.org/x/crypto from 0.27.0 to 0.31.0 in /go/controller #1069

Workflow file for this run

name: CD / Controller
on:
pull_request:
branches:
- "master"
paths:
- "go/controller/**"
push:
tags:
- 'v*.*.*'
permissions:
contents: read
env:
GOPATH: /home/runner/go
GOBIN: /home/runner/go/bin
GOPROXY: "https://proxy.golang.org"
jobs:
test:
name: Unit test
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
working-directory: go/controller
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Go
uses: actions/[email protected]
with:
go-version-file: go/controller/go.mod
cache: true
- name: Download dependencies
run: go mod download
- name: Download tools
run: PATH=$PATH:$GOPATH/bin make --directory=.. tools
- name: Test
run: PATH=$PATH:$GOPATH/bin make test
publish-docker:
name: Build and push controller container
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
working-directory: go/controller
needs: [ test ]
permissions:
contents: 'read'
id-token: 'write'
packages: 'write'
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/pluralsh/deployment-controller
gcr.io/pluralsh/deployment-controller
docker.io/pluralsh/deployment-controller
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: google-github-actions/auth@v1
with:
workload_identity_provider: 'projects/${{ secrets.GOOGLE_PROJECT_ID }}/locations/global/workloadIdentityPools/github/providers/github'
service_account: '[email protected]'
token_format: 'access_token'
create_credentials_file: true
- uses: google-github-actions/[email protected]
- name: Login to gcr
run: gcloud auth configure-docker -q
- name: Login to Docker
uses: docker/login-action@v3
with:
username: mjgpluralsh
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Build and push
uses: docker/[email protected]
with:
context: "./go"
file: "./go/controller/Dockerfile"
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
GIT_COMMIT=${{ github.sha }}
VERSION=${{ steps.meta.outputs.version }}