Skip to content

Commit

Permalink
Merge pull request #171 from prose-im/master
Browse files Browse the repository at this point in the history
fix: docker push to github
  • Loading branch information
valeriansaliou authored Aug 28, 2024
2 parents c644fdf + ebf2234 commit 32ee5f8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ jobs:
build:
runs-on: ubuntu-latest

permissions:
packages: write

outputs:
revision: ${{ steps.current_revision.outputs.short }}

Expand Down Expand Up @@ -65,6 +62,12 @@ jobs:
needs: build
runs-on: ubuntu-latest

permissions:
packages: write

env:
REGISTRY: ghcr.io

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -76,7 +79,7 @@ jobs:
- name: Log in to the container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -93,7 +96,7 @@ jobs:
with:
context: .
push: true
tags: ${{ github.repository }}:${{ needs.build.outputs.revision }}
tags: ${{ env.REGISTRY }}/${{ github.repository }}:${{ needs.build.outputs.revision }}

deploy:
needs: build
Expand Down

0 comments on commit 32ee5f8

Please sign in to comment.