Handle panic on exec error (#41) #44
Workflow file for this run
This file contains 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-docker-image | |
on: | |
push: | |
# This GitHub action creates a release when a tag that matches the pattern | |
# "v*" (e.g. v0.1.0) is created. | |
tags: | |
- 'v*' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# content write needed to create releases | |
permissions: | |
id-token: write | |
contents: write | |
env: | |
PUBLIC_REGISTRY: us-docker.pkg.dev/pvn-infra/pvn-public | |
jobs: | |
buildx: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- id: auth | |
name: "Authenticate to Google Cloud" | |
uses: "google-github-actions/auth@v0" | |
with: | |
workload_identity_provider: "projects/868387978158/locations/global/workloadIdentityPools/pvn-infra/providers/github" | |
service_account: "[email protected]" | |
token_format: "access_token" | |
create_credentials_file: true | |
- uses: "docker/login-action@v1" | |
with: | |
registry: "us-docker.pkg.dev" | |
username: "oauth2accesstoken" | |
password: "${{ steps.auth.outputs.access_token }}" | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21" | |
- uses: goreleaser/goreleaser-action@v4 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |