Skip to content

Commit

Permalink
Replicate
Browse files Browse the repository at this point in the history
  • Loading branch information
psav committed Dec 19, 2024
1 parent ddcc0eb commit c3f1713
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions .tekton/clowder-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,25 @@ metadata:
namespace: hcm-eng-prod-tenant
spec:
params:
- name: hermetic
value: "true"
- name: git-url
value: '{{source_url}}'
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/hcm-eng-prod-tenant/clowder/clowder:{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
value: Dockerfile
- name: path-context
value: .
- name: prefetch-input
value:
- {"type": "gomod", "path": "."}
- {"type": "gomod", "path": "./deps/controller-gen"}
- {"type": "gomod", "path": "./deps/kustomize"}
pipelineSpec:
description: |
This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization.
Expand Down Expand Up @@ -258,9 +267,9 @@ spec:
- use
- $(params.SOURCE_ARTIFACT)=/var/workdir/source
- name: unit-tests
image: registry.access.redhat.com/ubi8/go-toolset:1.22.7-5.1731464728
image: registry.access.redhat.com/ubi8/go-toolset:1.22.7-5.1733303300
workingDir: /var/workdir/source
script: set -xe && git config --global --add safe.directory /var/workdir/source && make -dn test
script: set -xe && git config --global --add safe.directory /var/workdir/source && ls -l && pwd && make -dn test
volumes:
# New volume to store a copy of the source code accessible only to this Task.
- name: workdir
Expand Down Expand Up @@ -288,8 +297,26 @@ spec:
args:
- use
- $(params.SOURCE_ARTIFACT)=/var/workdir/source
- name: make-template
image: registry.access.redhat.com/ubi8/go-toolset:1.22.7-5.1733303300
workingDir: /opt/app-root/src
env:
- name: LOCALBIN
value: /tmp/bin
- name: IMG
value: $(tasks.build-container.results.IMAGE_URL)@$(tasks.build-container.results.IMAGE_DIGEST)
script: |
set -xe && cp /var/workdir/source/* /opt/app-root/src -Rv && make release && make build-template-kustomize && cp manifest.yaml /var/workdir/ && cp deploy-kustomize.yaml /var/workdir/
- name: test-template
image: registry.access.redhat.com/ubi8/ubi:8.10-1154
workingDir: /opt/app-root/src
env:
- name: LOCALBIN
value: /tmp/bin
script: |
set -xe && cp /var/workdir/source/* /opt/app-root/src -Rv && cp /var/workdir/manifest.yaml . && cp /var/workdir/deploy-kustomize.yaml . && dnf install make python3.12 diffutils -y && make build-template && make test-template
- name: e2e-tests
image: registry.access.redhat.com/ubi8/ubi:8.10-1132.1732635159
image: registry.access.redhat.com/ubi8/ubi:8.10-1154
workingDir: /var/workdir/source
env:
- name: MINIKUBE_HOST
Expand All @@ -313,7 +340,7 @@ spec:
name: minikube-ssh-key
key: MINIKUBE_ROOTDIR
# FIXME: this should be handled from the script itself
script: set -ex && dnf install -y git openssh-clients python3.12 make && ci/konflux_minikube_e2e_tests.sh
script: set -ex && dnf install -y git openssh-clients python3.12 make jq diffutils && ci/konflux_minikube_e2e_tests.sh
volumes:
# New volume to store a copy of the source code accessible only to this Task.
- name: workdir
Expand Down

0 comments on commit c3f1713

Please sign in to comment.