Skip to content
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

[GEN-1164] add workflow to build docker image and push it to ghcr #556

Merged
merged 10 commits into from
Apr 4, 2024

Conversation

danlu1
Copy link
Contributor

@danlu1 danlu1 commented Apr 2, 2024

Problem:

There are limited admin seats that we can have on dockerHub.

Solution:
Switch to pushing our docker images to ghcr

Output:

The docker image and cached image can be viewed here.

@danlu1 danlu1 requested a review from a team as a code owner April 2, 2024 19:19
@danlu1 danlu1 requested review from rxu17 and thomasyu888 April 3, 2024 19:15
danlu1 added 2 commits April 3, 2024 12:48
Remove tags section in docker/metadata-action since only push event will generate tag for branch. But we want branch based cache.
Disable provenance to avoid caching manifest
@rxu17 rxu17 changed the title [GEN-1164] add workflow to build aocker image and push it to ghcr [GEN-1164] add workflow to build docker image and push it to ghcr Apr 4, 2024
Copy link
Contributor

@rxu17 rxu17 left a comment

Choose a reason for hiding this comment

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

Thanks for tackling this! Just a question

@@ -5,15 +5,18 @@ name: build

on:
push:
branches:
- develop
branches: [develop, 'GEN*', 'gen*']
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a comment to note that test and lint will run for every push now to the feature branches regardless of whether there is a PR or not. Nothing to fix here.

Copy link
Contributor Author

@danlu1 danlu1 Apr 4, 2024

Choose a reason for hiding this comment

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

Yes, right now, push to develop, branches with gen/GEN prefix, all PRs and release will trigger the test and lint job.

@@ -5,15 +5,18 @@ name: build

on:
push:
branches:
- develop
branches: [develop, 'GEN*', 'gen*']
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually could you also add main to the branches here? I don't know if your current setup for ghcr will always create a docker image that is based on the latest version of the repo like we have for dockerhub? Will this setup create a latest tag by default?

Add main branch to push event branches.
Copy link

sonarqubecloud bot commented Apr 4, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@rxu17 rxu17 self-requested a review April 4, 2024 21:25
Copy link
Contributor

@rxu17 rxu17 left a comment

Choose a reason for hiding this comment

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

LGTM!

@danlu1 danlu1 merged commit 950ced4 into develop Apr 4, 2024
14 checks passed
Copy link
Member

@thomasyu888 thomasyu888 left a comment

Choose a reason for hiding this comment

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

🔥 thanks for the great work! Great review

@thomasyu888 thomasyu888 deleted the GEN-1164 branch April 25, 2024 03:43
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