From f91ee5d245f698b659cc2c9a2161bba73d0d470e Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 3 Jul 2021 14:16:10 -0500 Subject: [PATCH] ci: fixed publishing of latest image for master branch only #946 --- .github/workflows/build-multiarch.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-multiarch.yml b/.github/workflows/build-multiarch.yml index e0ee70b4..50ff894d 100644 --- a/.github/workflows/build-multiarch.yml +++ b/.github/workflows/build-multiarch.yml @@ -38,9 +38,8 @@ jobs: tags: | type=ref,event=branch type=ref,event=tag - type=edge,branch=master flavor: | - latest=true + latest=${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Setup Docker Buildx uses: docker/setup-buildx-action@v1