Skip to content

ci: only push the el9-dirac image from master - #79

Closed
fstagni wants to merge 2 commits into
DIRACGrid:masterfrom
fstagni:fix-el9-dirac-push
Closed

fstagni wants to merge 2 commits into
DIRACGrid:masterfrom
fstagni:fix-el9-dirac-push

Conversation

@fstagni

@fstagni fstagni commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Part of DIRACGrid/.github#5.

PRs from forks get a read-only GITHUB_TOKEN, so the unconditional docker push of the el9-dirac image always fails there (installation not allowed to Write organization package): this is what breaks the CI of #78 (and broke #77 the same way).

Guard the push like the certificates-generation job already does, so PR jobs become pure build-and-verify and images are pushed only from master.

PRs from forks get a read-only GITHUB_TOKEN, so the unconditional
docker push always fails there ("installation not allowed to Write
organization package"). Guard the push like the certificates-generation
job already does.
Restricting the push to push events also stopped the Monday cron (and
manual runs) from publishing el9-dirac:latest with the OS updates. Skip
only pull requests.

Assisted-by: Claude:claude-opus-5-5
@aldbr aldbr closed this Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants