Skip to content

Commit

Permalink
Update Github actions again to try to get .env tag reflected in build.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcduffie committed Feb 14, 2024
1 parent 01100ff commit c535ba4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c535ba4

Please sign in to comment.