Skip to content

ci: publish vroom to GHCR and provide a tagged release on GHCR#576

Merged
BYK merged 9 commits intogetsentry:mainfrom
aldy505:ci/build-ghcr-release-tag
Jun 12, 2025
Merged

ci: publish vroom to GHCR and provide a tagged release on GHCR#576
BYK merged 9 commits intogetsentry:mainfrom
aldy505:ci/build-ghcr-release-tag

Conversation

@aldy505
Copy link
Copy Markdown
Contributor

@aldy505 aldy505 commented Mar 28, 2025

Similar work with these PRs:

While also trying to provide a solution (or at least an alternative) for this issue: getsentry/self-hosted#3593

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@aldy505 aldy505 requested a review from a team as a code owner March 28, 2025 03:07
Comment on lines +58 to +59
- timeout-minutes: 20
run: until docker pull "us-central1-docker.pkg.dev/sentryio/vroom/vroom:${{ github.sha }}" 2>/dev/null; do sleep 10; done
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's definitely not do this and move the actual build to GitHub Actions. Otherwise you are just wasting CPU cycles and holding up workers until the Google build is done.

Alternatively, you can just another target in .craft.yml which does exactly what you do here.

@aldy505 aldy505 requested a review from BYK March 29, 2025 05:11
Copy link
Copy Markdown
Member

@BYK BYK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess? :D

@BYK
Copy link
Copy Markdown
Member

BYK commented Mar 31, 2025

@asottile-sentry for the review, especially on required checks.

Ah, the failure was due to permissions. Retried from my account, let's see if it goes through.

@aldy505
Copy link
Copy Markdown
Contributor Author

aldy505 commented Mar 31, 2025

@asottile-sentry for the review, especially on required checks.

Ah, the failure was due to permissions. Retried from my account, let's see if it goes through.

@BYK I believe it was due to this https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#pushing-container-images

When you first publish a package, the default visibility is private. To change the visibility or set access permissions, see Configuring a package's access control and visibility. You can link a published package to a repository using the user interface or command line. For more information, see Connecting a repository to a package.

@aldy505
Copy link
Copy Markdown
Contributor Author

aldy505 commented Apr 21, 2025

Hello, can you guys take a look at this? @hubertdeng123 @asottile-sentry

@BYK BYK requested a review from phacops April 22, 2025 22:19
@phacops
Copy link
Copy Markdown
Contributor

phacops commented Apr 22, 2025

We need to update the image in the deploy script as well or push to both places https://github.com/getsentry/vroom/blob/main/gocd/templates/bash/deploy.sh#L8

@aldy505
Copy link
Copy Markdown
Contributor Author

aldy505 commented Apr 22, 2025

We need to update the image in the deploy script as well or push to both places https://github.com/getsentry/vroom/blob/main/gocd/templates/bash/deploy.sh#L8

I believe this PR already push to both places.

@phacops
Copy link
Copy Markdown
Contributor

phacops commented Apr 24, 2025

I believe this PR already push to both places.

Ah, you are indeed correct and Cloud Build is responsible for this.

@aldy505
Copy link
Copy Markdown
Contributor Author

aldy505 commented Apr 24, 2025

@mdtro Hey, can you take a look over the build CI? Seems like another permission issue.

Comment on lines +78 to +85
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0

- name: Build
uses: docker/build-push-action@32945a339266b759abcbdc89316275140b0fc960 # v6.8.10
with:
context: .
cache-from: ghcr.io/getsentry/vroom:nightly
cache-to: type=inline
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we are missing out on the <sha> part in the tag?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, that one is being handled by another job on assemble-image.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignore this, I see it below now. But we should explain this flow in code comments.

Copy link
Copy Markdown
Member

@BYK BYK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect

@BYK BYK merged commit 823b00e into getsentry:main Jun 12, 2025
14 checks passed
@aldy505 aldy505 deleted the ci/build-ghcr-release-tag branch June 21, 2025 07:55
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