Skip to content

Conversation

@aldy505
Copy link
Collaborator

@aldy505 aldy505 commented Dec 24, 2025

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

brain getting to much work
@aldy505 aldy505 requested a review from a team as a code owner December 24, 2025 12:37
@aldy505 aldy505 requested review from BYK and hubertdeng123 December 24, 2025 12:37
@aldy505 aldy505 changed the title build: release Docker image to GHCR via Craft ref(build): release Docker image to GHCR via Craft Dec 25, 2025
@aldy505 aldy505 changed the title ref(build): release Docker image to GHCR via Craft ref(build): Release Docker image to GHCR via Craft Jan 8, 2026
source: ghcr.io/getsentry/relay
target: ghcr.io/getsentry/relay
targetFormat: "{{{target}}}:latest"
- id: latest
Copy link
Member

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?

Copy link
Collaborator Author

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?

Copy link
Member

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
Copy link

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.

Additional Locations (1)

Fix in Cursor Fix in Web

@Dav1dde Dav1dde enabled auto-merge January 8, 2026 10:49
@Dav1dde Dav1dde added this pull request to the merge queue Jan 8, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Jan 8, 2026
@Dav1dde Dav1dde enabled auto-merge January 8, 2026 11:12
@Dav1dde Dav1dde added this pull request to the merge queue Jan 8, 2026
Merged via the queue into getsentry:master with commit 47e6819 Jan 8, 2026
29 checks passed
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.

3 participants