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

Canary images are seemingly built against PRs #225

Open
bacongobbler opened this issue Nov 6, 2024 · 1 comment
Open

Canary images are seemingly built against PRs #225

bacongobbler opened this issue Nov 6, 2024 · 1 comment

Comments

@bacongobbler
Copy link

bacongobbler commented Nov 6, 2024

@kate-goldenring and I were testing the canary release of containerd-shim-spin this morning. The latest canary appears to be pointing to 636a7f5, which appears to be a commit from #224.

Shouldn't node-installer images be built only when a PR is merged to main?

https://github.com/spinkube/containerd-shim-spin/pkgs/container/containerd-shim-spin%2Fnode-installer/300921402?tag=20241105-224120-g636a7f5

@vdice
Copy link
Contributor

vdice commented Nov 6, 2024

That is indeed the case today: node-installer images are pushed for branches/PRs on origin. This functionality was added as I recall there being requests to publish artifacts for more impactful branches/PRs. Ref https://github.com/spinkube/containerd-shim-spin/blob/main/README.md#locating-build-artifacts for a full breakdown on CI artifacts.

However, we can certainly disable this if we'd prefer images only be pushed from main. Contributors could then merge to main on their forks if they required artifacts while working on features. Or we could perhaps continue publishing but with a different repo name (eg ghcr.io/spinkube/containerd-shim-spin/node-installer-pr) or tag naming convention?

For today, to select an image published via a commit on main, acquire the desired commit and then locate the corresponding artifact via the $(date +%Y%m%d-%H%M%S)-g$(git rev-parse --short HEAD) naming convention. Eg, 45010e1 is the current main commit and its corresponding Docker image is https://github.com/spinkube/containerd-shim-spin/pkgs/container/containerd-shim-spin%2Fnode-installer/300913767?tag=20241105-221902-g45010e1

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

No branches or pull requests

2 participants