#How to tag images after building them?

1 messages · Page 1 of 1 (latest)

gritty crow
#

I want to tag builds as latest after a successfully merged PR.

gritty crow
#

How to tag images after building them?

idle tangle
#

Hey @gritty crow! You have a dagger pipeline that publishes an image and want to tag it as latest?

gritty crow
#

Yes, only upon merging PRs in GitHub, to prevent test builds from being deployed.

idle tangle
#

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?

gritty crow
#

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.

idle tangle
#

Great. Are test builds packaged as images and published at some registry?

gritty crow
#

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.