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

Build and release EC images together. #2211

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

lcarva
Copy link
Member

@lcarva lcarva commented Dec 10, 2024

Ref. EC-911

See commit messages for more information.

The sast-snyk-check Task does not provide an `image-digest` parameter.
Instead, users are expected to profide image references that include the
digest via the `image-url` parameter.

Signed-off-by: Luiz Carvalho <[email protected]>
This is recommended by Tekton and fixes a violation found by tektor[1].

[1] https://github.com/lcarva/tektor

Signed-off-by: Luiz Carvalho <[email protected]>
This commit changes the build process so the Tekton bundle is built in
the same build pipeline that builds the CLI image. This has the main
advantage of creating a close relationship between the two images. The
bundle image, for example, references the CLI image by digest. It also
simplifies the build process.

As such, the build pipeline for the bundle is removed.

Ref: EC-911

Signed-off-by: Luiz Carvalho <[email protected]>
This commit changes the tenant release pipeline so it understands that
both the CLI and the bundle images are built within the same build
Pipeline. It also removes the need to use different release Pipelines
for each image.

Signed-off-by: Luiz Carvalho <[email protected]>
Copy link

codecov bot commented Dec 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.19%. Comparing base (a0b32fc) to head (4ece8d5).
Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2211   +/-   ##
=======================================
  Coverage   71.19%   71.19%           
=======================================
  Files          88       88           
  Lines        7520     7520           
=======================================
  Hits         5354     5354           
  Misses       2166     2166           
Flag Coverage Δ
generative 71.19% <ø> (ø)
integration 71.19% <ø> (ø)
unit 71.19% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@simonbaird
Copy link
Member

Looks good. Looking forward to tomorrow's demo/walkthrough.

hack/expand-snapshot.sh Show resolved Hide resolved
Comment on lines +53 to +54
# TODO: Can't use Konflux's git-clone Task because that requires a security context not provided
# to the ServiceAccount running this pipeline (securityContext.runAsUser: 0).
Copy link
Member

Choose a reason for hiding this comment

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

Pointer to an issue to get this resolved upstream?

- name: url
value: https://github.com/lcarva/release-service-bundles.git
value: https://github.com/lcarva/build-definitions.git
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps we can keep that version of the git-clone task in this repository instead?

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

Successfully merging this pull request may close these issues.

3 participants