1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-15 05:50:17 +00:00

ci/cd: use github.repository variable intead of hardcoding the repository name

This commit is contained in:
Elias Schneider
2025-03-06 19:13:44 +01:00
parent ff34e3b925
commit 66090f36a8

View File

@@ -35,7 +35,7 @@ jobs:
- name: Build and push - name: Build and push
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: 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: . context: .
platforms: linux/amd64, linux/arm64 platforms: linux/amd64, linux/arm64
push: true push: true
@@ -48,5 +48,5 @@ jobs:
if: github.event.action == 'opened' if: github.event.action == 'opened'
uses: nefrob/pr-description@v1.2.0 uses: nefrob/pr-description@v1.2.0
with: 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 }} token: ${{ secrets.GITHUB_TOKEN }}