Skip to content

Conversation

@mmlb
Copy link
Contributor

@mmlb mmlb commented May 18, 2022

Description

This will build and push images that can be tracked back to a git commit. This way we don't clobber 0.0 over and over. This also changes from 0.0 to the more common latest in docker/containers land. I did this because hook doesn't do any kind of semver anyway so might as well drop the not-meaningful 0.0. When ever we do start tagging versions here we can get back to publishing semver tags (I'd like to see latest, vX, vX.Y too for main, not sure about vX.Y.Z, but thats for another day).

Why is this needed

Helps me clean up the Makefile, and helps users to not always be fetching equivalent of latest.

How Has This Been Tested?

I've run the Makefile stuff locally, but will leave the GHA to GHA.

How are existing users impacted? What migration steps/scripts do we need?

Users will have to decide if they want to stay on latest or choose a specific sha-$COMMIT and will need to choose when to bump the image version if they choose the latter. This is only temporary as we should start tagging stuff here soon.

@mmlb mmlb force-pushed the better-image-versions branch from 3f93a09 to afef1e7 Compare May 18, 2022 22:10
By default we'll live with `latest` (instead of 0.0) but be able to specify
any tag we want. The idea being we can provide the tag on pushes and set
both latest and a per-commit sha-* tag (like all the other service images do).

Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
@mmlb mmlb force-pushed the better-image-versions branch from afef1e7 to 4fef8ab Compare May 18, 2022 22:11
@mmlb mmlb requested review from ScottGarman and thebsdbox May 18, 2022 22:32
Copy link
Contributor

@ScottGarman ScottGarman left a comment

Choose a reason for hiding this comment

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

This has been so needed! Thanks for tackling this.

@mmlb mmlb removed the request for review from thebsdbox May 19, 2022 13:55
@mmlb mmlb added the ready-to-merge Signal to Mergify to merge the PR. label May 19, 2022
@mergify mergify bot merged commit bba1ae6 into tinkerbell:main May 19, 2022
@mmlb mmlb deleted the better-image-versions branch May 19, 2022 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Signal to Mergify to merge the PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants