Skip to content

Commit

Permalink
chore: migrate to docker metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriansaliou committed Aug 28, 2024
1 parent 08fc6cf commit 975dd19
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ jobs:
env/nginx/
Dockerfile
- name: Acquire Docker image metadata
id: metadata
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=tag
type=raw,value=${{ needs.build.outputs.revision }}
type=raw,value=latest
- name: Log in to the container registry
uses: docker/login-action@v3
with:
Expand All @@ -94,10 +104,9 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
push: true
tags:
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ needs.build.outputs.revision }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest

deploy:
needs: build
Expand Down

0 comments on commit 975dd19

Please sign in to comment.