Skip to content

Commit

Permalink
fix: improve docker image publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriansaliou committed Aug 28, 2024
1 parent ebf2234 commit dddc8a7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

steps:
- name: Checkout code
Expand All @@ -76,6 +77,12 @@ jobs:
env/nginx/
Dockerfile
- name: Acquire Docker image metadata
id: metadata
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Log in to the container registry
uses: docker/login-action@v3
with:
Expand All @@ -96,7 +103,8 @@ jobs:
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository }}:${{ needs.build.outputs.revision }}
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}

deploy:
needs: build
Expand Down

0 comments on commit dddc8a7

Please sign in to comment.