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.

Copy link

codecov bot commented Dec 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.69%. Comparing base (9d4f0a8) to head (5bb94e3).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2211   +/-   ##
=======================================
  Coverage   72.69%   72.69%           
=======================================
  Files          88       88           
  Lines        7622     7622           
=======================================
  Hits         5541     5541           
  Misses       2081     2081           
Flag Coverage Δ
generative 72.69% <ø> (ø)
integration 72.69% <ø> (ø)
unit 72.69% <ø> (ø)

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?

lcarva added 4 commits January 9, 2025 15:54
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]>
@lcarva
Copy link
Member Author

lcarva commented Jan 9, 2025

/retest

Konflux, are you there?

@lcarva
Copy link
Member Author

lcarva commented Jan 10, 2025

/retest

@lcarva lcarva closed this Jan 10, 2025
@lcarva lcarva reopened this Jan 10, 2025
@lcarva
Copy link
Member Author

lcarva commented Jan 13, 2025

/retest

1 similar comment
@lcarva
Copy link
Member Author

lcarva commented Jan 14, 2025

/retest

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