Skip to content

Commit

Permalink
🐳 Update Docker image build & push process to use dynamic repository …
Browse files Browse the repository at this point in the history
…name

Enabling building and pushing Docker images under the individual developer's namespace on GHCR by using dynamic repository naming based on GitHub actor. This improves automation flexibility by allowing each contributor to publish to their own GHCR space.
  • Loading branch information
ShivamB25 committed Jan 11, 2024
1 parent 023b023 commit 21838ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ghcr-image-github-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

- name: 'Build Inventory Image'
- name: Build Inventory Image
run: |
docker build . ghcr.io/forscht/ddrive:${{ steps.extract-version.outputs.version }}
docker push ghcr.io/forscht/ddrive:${{ steps.extract-version.outputs.version }}
docker build . ghcr.io/${{github.actor}}/ddrive:${{ steps.extract-version.outputs.version }}
docker push ghcr.io/${{github.actor}}/ddrive:${{ steps.extract-version.outputs.version }}

0 comments on commit 21838ec

Please sign in to comment.