Skip to content

Commit

Permalink
Merge pull request #42 from prose-im/master
Browse files Browse the repository at this point in the history
Fix
  • Loading branch information
valeriansaliou authored Aug 28, 2024
2 parents c640605 + 975dd19 commit 1409d7d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:

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

steps:
- name: Checkout code
Expand All @@ -74,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 @@ -93,8 +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 }}/${{ github.repository }}:${{ needs.build.outputs.revision }}

deploy:
needs: build
Expand Down

0 comments on commit 1409d7d

Please sign in to comment.