Skip to content
Merged
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
9 changes: 5 additions & 4 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
// This configures Konflux Renovate bot, the thing that keeps our pipelines use up-to-date tasks.
// This configures Konflux Renovate bot a.k.a. MintMaker, the thing that keeps our pipelines use up-to-date tasks.

// After making changes to this file, you can validate it by running something like this in the root of the repo:
// $ docker run --rm -it --entrypoint=renovate-config-validator -v "$(pwd)":/mnt -w /mnt renovate/renovate --strict
// Note: ignore errors about the config for `rpm`. This is to be addressed with https://issues.redhat.com/browse/CWFHEALTH-4117
// Note: ignore errors about the config for `rpm-lockfile`. This is to be addressed with https://issues.redhat.com/browse/CWFHEALTH-4117
// There are more validation options, see https://docs.renovatebot.com/config-validation/

"$schema": "https://docs.renovatebot.com/renovate-schema.json",
Expand Down Expand Up @@ -59,17 +59,18 @@
],
},
},
"rpm": {
"rpm-lockfile": {
"schedule": [
// Override Konflux custom schedule for this manager to our intended one.
// Note that MintMaker will create security updates outside of schedule.
"after 3am and before 7am",
],
},
"enabledManagers": [
// Restrict Renovate focus on Konflux things since we rely on GitHub's dependabot for everything else.
"tekton",
"dockerfile",
"rpm",
"rpm-lockfile",
],
"packageRules": [{
"matchPackageNames": ["*"],
Expand Down
25 changes: 10 additions & 15 deletions .tekton/scanner-component-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ spec:
- name: image-url
# We can't provide a StackRox-style tag because it is not known at this time (requires cloning source, etc.)
# As a workaround, we still provide a unique tag that's based on a revision in order for this task to comply with
# its expected input. We later actually add this tag on a built image with the build-image-index-konflux task.
# its expected input. We later actually add this tag on a built image with the apply-index-image-tag task.
value: $(params.output-image-repo):konflux-$(params.revision)
- name: rebuild
value: $(params.rebuild)
Expand Down Expand Up @@ -471,26 +471,21 @@ spec:
operator: in
values: [ "true" ]

- name: build-image-index-konflux
- name: apply-index-image-tag
params:
- name: IMAGE
value: $(params.output-image-repo):konflux-$(params.revision)
- name: COMMIT_SHA
value: $(tasks.clone-repository.results.commit)
- name: IMAGES
- name: IMAGE_URL
value: $(tasks.build-image-index.results.IMAGE_URL)
- name: IMAGE_DIGEST
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
- name: ADDITIONAL_TAGS
value:
- $(tasks.build-container-amd64.results.IMAGE_REF)
- $(tasks.build-container-s390x.results.IMAGE_REF)
- $(tasks.build-container-ppc64le.results.IMAGE_REF)
- $(tasks.build-container-arm64.results.IMAGE_REF)
- name: IMAGE_EXPIRES_AFTER
value: $(tasks.determine-image-expiration.results.IMAGE_EXPIRES_AFTER)
- konflux-$(params.revision)
taskRef:
params:
- name: name
value: build-image-index
value: apply-tags
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-build-image-index:0.1@sha256:ba7fbed5c4862968c1a77d6b90d5bdd497925ab1de41b859c027dd5c3069cd3e
value: quay.io/konflux-ci/tekton-catalog/task-apply-tags:0.2@sha256:f44be1bf0262471f2f503f5e19da5f0628dcaf968c86272a2ad6b4871e708448
- name: kind
value: task
resolver: bundles
Expand Down