mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-15 15:45:05 +00:00
ci/cd: use github.repository variable intead of hardcoding the repository name
This commit is contained in:
4
.github/workflows/pr-docker-build.yml
vendored
4
.github/workflows/pr-docker-build.yml
vendored
@@ -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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user