-
Notifications
You must be signed in to change notification settings - Fork 106
ref(build): Release Docker image to GHCR via Craft #5509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ref(build): Release Docker image to GHCR via Craft #5509
Conversation
Uses Craft's new version
brain getting to much work
| source: ghcr.io/getsentry/relay | ||
| target: ghcr.io/getsentry/relay | ||
| targetFormat: "{{{target}}}:latest" | ||
| - id: latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that fine, having the same id twice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good question. @BYK do you have the answer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quite sure you should not repeat an id.
| targetFormat: "{{{target}}}:latest" | ||
| - id: latest | ||
| name: docker | ||
| source: ghcr.io/getsentry/relay |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate id: latest in Docker target configuration
Medium Severity
Two Docker target entries both use id: latest (one for GHCR at line 36 and one for DockerHub at line 45). As noted in the PR discussion by @BYK, repeating an id is not allowed in Craft configuration. This could cause one target to be ignored or overwritten, potentially resulting in only one of the "latest" Docker images being published during releases. The second entry needs a unique ID like latest-dockerhub.
🔬 Verification Test
Why verification test was not possible: This is a configuration file for Craft (a release automation tool), which requires the actual Craft tooling and release infrastructure to verify behavior. The issue is clearly documented in the PR discussion where maintainer @BYK confirmed "Quite sure you should not repeat an id." The duplicate can be verified by simple visual inspection of the YAML file showing two entries with id: latest at lines 36 and 41.
This is an ongoing effort to simplify the release process to not rely on the hacky GitHub Actions script that copies the Docker image after a release was created.
Part of getsentry/self-hosted#4123
REF SELF-78
#skip-changelog