diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml new file mode 100644 index 0000000000..7c09d05938 --- /dev/null +++ b/.github/workflows/push.yaml @@ -0,0 +1,33 @@ +--- +name: "Push Image" +on: # yamllint disable-line rule:truthy + push: + tags: + - "*" +permissions: + contents: "write" + packages: "write" +env: + GO_VERSION: "~1.21.3" +jobs: + push: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v3" + with: + fetch-depth: 0 + - uses: "authzed/actions/setup-go@main" + with: + go-version: "${{ env.GO_VERSION }}" + - uses: "docker/login-action@v1" + with: + registry: "ghcr.io" + username: "${{ github.actor }}" + password: "${{ secrets.GITHUB_TOKEN }}" + - uses: "docker/setup-qemu-action@v1" + - uses: "docker/setup-buildx-action@v1" + - uses: "docker/build-push-action@v5" + with: + push: true + file: ${{ github.workspace }}/Dockerfile.release + tags: ${{ github.repository }}:${{ github.ref_name }}