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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 37 additions & 3 deletions .tekton/cli-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ spec:
- description: Fully Qualified Output Image
name: output-image
type: string
- description: >-
OCI repository of the CLI image to use as a reference in the Tekton bundle. When setting
this value, take into account where the CLI image will be available for usage. For certain
workflows, e.g. pull request, this should be the repo in which the CLI image is built into
because those CLI images are not promoted to another location. For merge workflows that go
through a release, for example, this should be the repository for which the CLI image will
be released to.
name: bundle-cli-ref-repo
type: string
- default: .
description: Path to the source code of an application's component from where to build image.
name: path-context
Expand Down Expand Up @@ -55,6 +64,7 @@ spec:
- default: ""
description: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively.
name: image-expires-after
type: string
- default: "false"
description: Build a source image.
name: build-source-image
Expand Down Expand Up @@ -261,6 +271,32 @@ spec:
operator: in
values:
- "true"
- name: build-tekton-bundle
params:
- name: IMAGE
value: $(params.output-image).bundle
- name: CONTEXT
value: tasks/verify-enterprise-contract/0.1/verify-enterprise-contract.yaml
- name: STEPS_IMAGE
value: $(params.bundle-cli-ref-repo)@$(tasks.build-image-index.results.IMAGE_DIGEST)
- name: SOURCE_ARTIFACT
value: $(tasks.clone-repository.results.SOURCE_ARTIFACT)
runAfter:
- build-image-index
taskRef:
params:
- name: name
value: tkn-bundle-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-tkn-bundle-oci-ta:0.1@sha256:7d2ca9fbe8f3ba5636f18a36d086acf6cd37eef83032afa845032fe9dc7152e7
- name: kind
value: task
resolver: bundles
when:
- input: $(tasks.init.results.build)
operator: in
values:
- "true"
- name: deprecated-base-image-check
params:
- name: IMAGE_URL
Expand Down Expand Up @@ -327,10 +363,8 @@ spec:
- "false"
- name: sast-snyk-check
params:
- name: image-digest
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
- name: image-url
value: $(tasks.build-image-index.results.IMAGE_URL)
value: $(tasks.build-image-index.results.IMAGE_URL)@$(tasks.build-image-index.results.IMAGE_DIGEST)
- name: SOURCE_ARTIFACT
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
- name: CACHI2_ARTIFACT
Expand Down
2 changes: 2 additions & 0 deletions .tekton/cli-main-ci-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ spec:
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/rhtap-contract-tenant/ec-main-ci/cli-main-ci:on-pr-{{revision}}
- name: bundle-cli-ref-repo
value: quay.io/redhat-user-workloads/rhtap-contract-tenant/ec-main-ci/cli-main-ci
- name: image-expires-after
value: 5d
- name: dockerfile
Expand Down
2 changes: 2 additions & 0 deletions .tekton/cli-main-ci-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ spec:
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/rhtap-contract-tenant/ec-main-ci/cli-main-ci:{{revision}}
- name: bundle-cli-ref-repo
value: quay.io/enterprise-contract/cli
- name: image-expires-after
value: ''
- name: dockerfile
Expand Down
269 changes: 0 additions & 269 deletions .tekton/task-build.yaml

This file was deleted.

Loading
Loading