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

Enable tagging existing image with image-builder #12330

Open
1 task
kolodziejczak opened this issue Nov 12, 2024 · 1 comment
Open
1 task

Enable tagging existing image with image-builder #12330

kolodziejczak opened this issue Nov 12, 2024 · 1 comment
Labels
area/ci Issues or PRs related to CI related topics kind/feature Categorizes issue or PR as related to a new feature.

Comments

@kolodziejczak
Copy link
Contributor

Description

We @kyma-project/goat, would like to create a following release pipeline:

  1. Run tests that do not require image (units etc)
  2. Build an image with a working tag like v20241112-13ghags, but without release tag (eg. 1.8.)
  3. Run tests that require module image (e2e)
  4. If e2e tests are successful - tag the existing image, created in the previous steps with a release tag (eg. 1.8.0)
  5. Create release

To do that, we need to be able to tag an existing image with a new, different tag.

Reasons

Create proper release pipeline. Currently in a situation where the e2e tests fails against the release artifact and it cannot be proceed, the artifact already exists with a release tag. In addition teams are not able to delete this artifact on their own.

Enable teams to create clean release pipeline, with the good practices applied. Remove eventual dependency to another team during unsuccessful release.

Acceptance Criteria

  • image-builder allows to tag existing image with another tag in the same workflow run

Attachments

@kolodziejczak kolodziejczak added area/ci Issues or PRs related to CI related topics kind/feature Categorizes issue or PR as related to a new feature. labels Nov 12, 2024
@Ressetkk
Copy link
Contributor

I would also be nice if we could re-tag and sign images in the pipeline environment during the promotion of an artifact.

inputs:

  • reference to existing image, eg. local.kyma/dev/image:vDATE-sha
  • reference to new image, eg. production.kyma/image:VERSION

outputs:

  • processed reference to new image production.kyma/image:VERSION

requirements:

  • download image with the remote digest (do not use docker, as it changes the digest of an image in its local registry)
  • change image reference
  • push image to new path
  • sign new image with remote signing service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci Issues or PRs related to CI related topics kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants