-
Notifications
You must be signed in to change notification settings - Fork 37
Setup automatic docker build and publish to docker registry #394
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #394 +/- ##
==========================================
+ Coverage 86.60% 86.63% +0.03%
==========================================
Files 25 25
Lines 5286 5298 +12
==========================================
+ Hits 4578 4590 +12
Misses 708 708 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
0bdd48a to
a582407
Compare
does this block create a tag for each of those types? |
Historically we've just done the "releases" so 0.1.0 etc However for integration testing with sig-ts I like the inclusion of pr/branch builds as well
I don't see a reason right now to require docker hub - previous releases obviously went there but I don't think its a blocker that people update their deployments to point to a different registry... Might be a question for a dev call. |
Generally as long as there's a githash one and tag/branch one LGTM. I probably wouldn't use the timestamp one personally. Another one we use in Veridian is a combination of the githash and run ID of the github action, if that's possible. So that gha env var changes, or any non-determinism is captured - not a big deal though. (Though preferably it should be deterministic)
According to devops lead on my team, Roberto, docker hub makes sense as it's the default for docker cli etc so makes discovery easier, and they are all free. We push to both for our forks. |
iFergal
left a comment
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.
Changes LGTM - we can adjust if needed based on the discussion now or later imo.
|
I am doing some tweaking. I think I can consolidate it since we already have the configuration for docker hub |
ff1b8ee to
261225a
Compare
|
I have updated it now and consolidated into one workflow. I repurposed the publish-keria.yml workflow. It will not, in addition to workflow_dispatch, also publish to docker hub on push to main. It will only publish 'latest' tags on workflow_dispatch. See my updated description in PR. I have also included links to successful workflow runs on my fork. |
261225a to
3eb3407
Compare
|
FYI, on our fork, where I also moved signify-ts into the repo. I ended up using tags like:
The tag is based of the version in So for example, if you have
And for the "release":
After the release, you would have to bump the version to |
|
This would be superseded by #398 |
This PR adds a step in the workflow to publish the container image to docker hub on push to main
The tags pushed are:
:main:build-<github run id>:sha-<short commit sha>The workflow_dispatch accepts the following options:
Some simplifications:
docker build ..I have tested the workflow here: