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

build and publish core images #34

Merged
merged 18 commits into from
Dec 27, 2024
Merged

Conversation

thetoolsmith
Copy link
Collaborator

test triggering for image build and publish to ghcr

@thetoolsmith thetoolsmith changed the title uncomment for PR test build and publish core images Dec 23, 2024
Comment on lines 29 to 33
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
Copy link
Collaborator

@lchen-2101 lchen-2101 Dec 26, 2024

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}}?

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

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 ;-)

Copy link
Collaborator

@lchen-2101 lchen-2101 left a 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.

@lchen-2101 lchen-2101 merged commit 04818af into main Dec 27, 2024
1 check passed
@lchen-2101 lchen-2101 deleted the feature/21-image-build-publish branch December 27, 2024 19:05
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.

2 participants