From b65f1089170a50c341f7795506241dcb69a3d964 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 5 Feb 2022 16:02:27 -0600 Subject: [PATCH] build: also push git tag builds --- .github/workflows/build-multiarch.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-multiarch.yml b/.github/workflows/build-multiarch.yml index 6bb19752..3f8d2ff1 100644 --- a/.github/workflows/build-multiarch.yml +++ b/.github/workflows/build-multiarch.yml @@ -70,7 +70,7 @@ jobs: itzg/minecraft-server tags: | type=ref,event=tag,enable=${{ matrix.variant == 'java17' }} - type=ref,event=tag,prefix=${{ matrix.variant }}- + type=ref,event=tag,suffix=-${{ matrix.variant }} type=raw,value=${{ matrix.variant }} flavor: | latest=${{ matrix.variant == 'java17' }} @@ -115,7 +115,7 @@ jobs: uses: docker/build-push-action@v2.8.0 with: platforms: ${{ matrix.platforms }} - push: ${{ github.ref_name == 'master' }} + push: ${{ github.ref_type = 'tag' || github.ref_name == 'master' }} tags: ${{ steps.meta.outputs.tags }} # ensure latest base image is used pull: true