#How to tag images after building them?
1 messages · Page 1 of 1 (latest)
How to tag images after building them?
Hey @gritty crow! You have a dagger pipeline that publishes an image and want to tag it as latest?
Yes, only upon merging PRs in GitHub, to prevent test builds from being deployed.
Sorry, I'm not sure I follow how you are currently using dagger. Could you share a bit more details on how the overall workflows is setup?
We're using Dagger locally and in a GitHub Action to run tests and create builds. The builds are picked up by CD. So whenever you make a commit in a PR, a build is created. This is fine but we want to tag the builds to make the deployment pipeline aware of test builds.
Great. Are test builds packaged as images and published at some registry?
Github packages. We can trigger the workflow on test, and on merge/push. We just want the latter case to tag the corresponding build from the PR's test run as latest, as opposed to creating a new image.