From 66090f36a86be9a59e4909839cbe67ef28ee69ba Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Thu, 6 Mar 2025 19:13:44 +0100 Subject: [PATCH] ci/cd: use `github.repository` variable intead of hardcoding the repository name --- .github/workflows/pr-docker-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-docker-build.yml b/.github/workflows/pr-docker-build.yml index 102e2e4c..bd4f1d8c 100644 --- a/.github/workflows/pr-docker-build.yml +++ b/.github/workflows/pr-docker-build.yml @@ -35,7 +35,7 @@ jobs: - name: Build and push uses: docker/build-push-action@v4 with: - tags: ghcr.io/pocket-id/pocket-id:pr-${{ github.event.pull_request.number }} + tags: ghcr.io/${{ github.repository }}:pr-${{ github.event.pull_request.number }} context: . platforms: linux/amd64, linux/arm64 push: true @@ -48,5 +48,5 @@ jobs: if: github.event.action == 'opened' uses: nefrob/pr-description@v1.2.0 with: - content: "\n\n---\nDocker image for this PR is available at `ghcr.io/pocket-id/pocket-id:pr-${{ github.event.pull_request.number }}`" + content: "\n\n---\nDocker image for this PR is available at `ghcr.io/${{ github.repository }}:pr-${{ github.event.pull_request.number }}`" token: ${{ secrets.GITHUB_TOKEN }}