From c535ba477f4bb30edf7c431a5e168627428378ef Mon Sep 17 00:00:00 2001 From: James McDuffie Date: Wed, 14 Feb 2024 11:55:53 -0800 Subject: [PATCH] Update Github actions again to try to get .env tag reflected in build. --- .github/workflows/docker-publish.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 1e9531a..edf3132 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -103,6 +103,10 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.stack }} + tags: | + type=ref,event=branch + type=ref,event=tag + type=semver,pattern={{version}},value=${{ steps.dotenv.outputs.docker_tag }} # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action @@ -112,9 +116,7 @@ jobs: with: context: ${{ matrix.stack }} push: ${{ github.event_name != 'pull_request' }} - tags: - - ${{ steps.meta.outputs.tags }} - - ${{ steps.dotenv.outputs.docker_tag }} + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max