mirror of https://github.com/garrytan/gstack.git
ci: use latest image tag for fork PRs in evals workflow
A fork's read-only GHCR token cannot push new content-hash tags, which is why build-image failed. Fork PRs now reuse the latest tag.
This commit is contained in:
parent
33f235dd62
commit
cb08e9f4d6
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
|
||||
- id: meta
|
||||
run: echo "tag=${{ env.IMAGE }}:${{ hashFiles('.github/docker/Dockerfile.ci', 'package.json', 'bun.lock') }}" >> "$GITHUB_OUTPUT"
|
||||
run: echo "tag=${{ env.IMAGE }}:${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository && 'latest' || hashFiles('.github/docker/Dockerfile.ci', 'package.json', 'bun.lock') }}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
|
|
|
|||
Loading…
Reference in New Issue