Skip to content

Commit

Permalink
fix: publish latest with tag
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenvechain committed Mar 13, 2024
1 parent 0174ae4 commit 22571b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ jobs:
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref }}
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ github.ref }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 22571b6

Please sign in to comment.