Skip to content

Commit

Permalink
Move cachi2 output image to konflux-ci namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Šoltis <[email protected]>
  • Loading branch information
slimreaper35 committed Oct 3, 2024
1 parent d969a3a commit 4f4000e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
5 changes: 1 addition & 4 deletions .tekton/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ kind: PipelineRun
metadata:
name: cachi2-on-pull-request
annotations:
build.appstudio.redhat.com/commit_sha: "{{revision}}"
build.appstudio.redhat.com/pull_request_number: "{{pull_request_number}}"
build.appstudio.redhat.com/target_branch: "{{target_branch}}"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-event: "[pull_request]"
pipelinesascode.tekton.dev/on-target-branch: "[main]"
Expand All @@ -16,7 +13,7 @@ spec:
- name: revision
value: "{{revision}}"
- name: output-image
value: "quay.io/redhat-appstudio/pull-request-builds:rhtap-build-cachi2-{{revision}}"
value: "quay.io/konflux-ci/pull-request-builds:cachi2-build-{{revision}}"
- name: dockerfile
value: Containerfile
pipelineRef:
Expand Down
4 changes: 1 addition & 3 deletions .tekton/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ kind: PipelineRun
metadata:
name: cachi2-on-push
annotations:
build.appstudio.redhat.com/commit_sha: "{{revision}}"
build.appstudio.redhat.com/target_branch: "{{target_branch}}"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-event: "[push]"
pipelinesascode.tekton.dev/on-target-branch: "[main]"
Expand All @@ -15,7 +13,7 @@ spec:
- name: revision
value: "{{revision}}"
- name: output-image
value: "quay.io/redhat-appstudio/cachi2:{{revision}}"
value: "quay.io/konflux-ci/cachi2:{{revision}}"
- name: dockerfile
value: Containerfile
- name: slack-webhook-notification-team
Expand Down
4 changes: 2 additions & 2 deletions .tekton/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ spec:
set -eufx
version=$(cat $(results.version.path))
skopeo copy docker://quay.io/redhat-appstudio/cachi2:$PARAM_REVISION \
docker://quay.io/redhat-appstudio/cachi2:$version
skopeo copy docker://quay.io/konflux-ci/cachi2:$PARAM_REVISION \
docker://quay.io/konflux-ci/cachi2:$version
finally:
- name: slack-webhook-notification
Expand Down
4 changes: 2 additions & 2 deletions .tekton/tag-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ spec:
image: registry.access.redhat.com/ubi9/skopeo:latest@sha256:23c9ed4af1f42614bdc56309452568b2110a67f23102f42f6a6582a63b63dcdb
script: |
#!/usr/bin/env bash
SRC_REF="quay.io/redhat-appstudio/cachi2:$(params.revision)"
TARGET_REF="quay.io/redhat-appstudio/cachi2:latest"
SRC_REF="quay.io/konflux-ci/cachi2:$(params.revision)"
TARGET_REF="quay.io/konflux-ci/cachi2:latest"
echo "Waiting until ${SRC_REF} is pushed"
Expand Down

0 comments on commit 4f4000e

Please sign in to comment.