-
Notifications
You must be signed in to change notification settings - Fork 0
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
build and publish core images #34
Conversation
…ic one. Switch unique tagging to use native github github.run_attempt property
docker build -t ghcr.io/cfpb/regtech/sbl/alpine:3.18_${{github.run_attempt}} -f Dockerfile-alpine . | ||
docker push ghcr.io/cfpb/regtech/sbl/alpine:3.18_${{github.run_attempt}} | ||
|
||
docker build -t ghcr.io/cfpb/regtech/sbl/alpine:v3.18.0 -f Dockerfile-alpine . | ||
docker push ghcr.io/cfpb/regtech/sbl/alpine:v3.18.0 |
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.
we don't need to build twice do we? think we can just build once, and tag and push twice. also, not sure if this has already been discussed but since the convention is having :latest
as the actual latest tag, what do we think about it being something like ghcr.io/cfpb/.../alpine_3_18_0:latest
and ghcr....alpine_3_18_0:${{github.run_attempt}}
?
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.
Yup. Thanks for catching that, forgot to remove the redundant build. I'll remove that.
As far as using the latest moniker, I hadn't heard anything about using latest
tag. I was assuming that wasn't desired.
However it might be moot because to make packages immutable in GHCR, we have to use semantic versioning which is why I changed the standard tag to that and just added the build specific one so people can pin if they need to.
Immutable packages is not 100% supported yet as it's still in Preview mode, but it does require semantic versioning from what I can tell. I put some references in the contributing.md
in this PR.
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.
updated with both latest and semantic version in addition to a build specific tag. Doesn't hurt to have both ;-)
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.
LGTM for now, let's create a topic to talk about how we want to version, and tag the images, possibly automated way.
test triggering for image build and publish to ghcr