build(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 #334
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| paths: | |
| - "Dockerfile" | |
| - "go.mod" | |
| - "go.sum" | |
| - "**/*.go" | |
| - "!cmd/folder-precreator/**" | |
| - ".github/workflows/build.yml" | |
| tags: | |
| - "*" | |
| pull_request: | |
| paths: | |
| - "Dockerfile" | |
| - "go.mod" | |
| - "go.sum" | |
| - "**/*.go" | |
| - "!cmd/folder-precreator/**" | |
| - ".github/workflows/build.yml" | |
| env: | |
| REGISTRY: europe-north1-docker.pkg.dev/artifact-registry-5n/dapla-lab-docker/dapla | |
| IMAGE: ssbucketeer | |
| TAG: ${{ github.ref_name }}-${{ github.sha }} | |
| jobs: | |
| docker: | |
| permissions: | |
| contents: "read" | |
| id-token: "write" | |
| runs-on: ubuntu-latest | |
| env: | |
| PLATFORMS: linux/amd64 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - id: "auth" | |
| name: "Authenticate to Google Cloud" | |
| uses: "google-github-actions/auth@v1.1.1" | |
| with: | |
| workload_identity_provider: "projects/848539402404/locations/global/workloadIdentityPools/gh-actions/providers/gh-actions" | |
| service_account: "gh-actions-dapla-lab@artifact-registry-5n.iam.gserviceaccount.com" | |
| token_format: "access_token" | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v2 | |
| - name: Set up Docker Buildx | |
| id: buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Login to registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: "oauth2accesstoken" | |
| password: "${{ steps.auth.outputs.access_token }}" | |
| - name: Docker meta | |
| id: metadata | |
| uses: docker/metadata-action@v4 | |
| with: | |
| images: ${{ env.REGISTRY }}/${{ env.IMAGE }} | |
| # Docker tags based on the following events/attributes | |
| tags: | | |
| type=schedule | |
| type=ref,event=branch | |
| type=ref,event=pr | |
| type=semver,pattern=v{{version}} | |
| type=semver,pattern=v{{major}}.{{minor}} | |
| type=semver,pattern=v{{major}} | |
| type=sha | |
| type=raw,value=${{ env.TAG }}, enable=true | |
| - name: Build and push | |
| uses: docker/build-push-action@v4 | |
| with: | |
| context: . | |
| platforms: ${{ env.PLATFORMS }} | |
| file: Dockerfile | |
| push: ${{ github.event_name != 'pull_request' }} | |
| tags: | | |
| ${{ steps.metadata.outputs.tags }} | |
| labels: ${{ steps.metadata.outputs.labels }} | |
| - name: Image digest | |
| run: echo ${{ steps.docker_build.outputs.digest }} |