Skip to content

Commit

Permalink
check if buildx action is necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
tillkuhn committed Mar 19, 2024
1 parent 9780bce commit 270ae9a
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# experimental go release
# Experimental go release workflow with ghcr.io packages
#
# How build and push multiple docker image with same repo and same version, but different name? #561
# https://github.com/docker/build-push-action/issues/561

# Matrix build with multiple vars per matrix: https://stackoverflow.com/a/76547617/4292075
#
# GH Packages About inheritance of access permissions
# https://docs.github.com/en/packages/learn-github-packages/configuring-a-packages-access-control-and-visibility#about-inheritance-of-access-permissions
name: go-release

on:
Expand Down Expand Up @@ -84,9 +92,9 @@ jobs:
platforms: ${{ env.GOOS }}/${{ env.ARCH }}

# required if we build for ARM on AMD?
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) # run only on main
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
# if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) # run only on main


# https://github.com/docker/build-push-action?tab=readme-ov-file#usage
Expand Down

0 comments on commit 270ae9a

Please sign in to comment.