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
26 changes: 14 additions & 12 deletions tekton/install-pipelines.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,27 @@ if [[ "${KUBECTL_CMD}" == "" ]]; then
fi

if [[ "${PIPELINE_NAMESPACE}" != "" ]]; then
NS="--namespace ${PIPELINE_NAMESPACE}"
NS=${PIPELINE_NAMESPACE}
else
NS=default
fi

echo "Installing Tekton resources ${NS}"
tkn task delete ${NS} --force git-clone || true
tkn hub install task ${NS} git-clone
tkn task delete ${NS} --force git-cli || true
tkn hub install task ${NS} git-cli
tkn task delete --namespace ${NS} --force git-clone || true
tkn hub install task --namespace ${NS} git-clone
tkn task delete --namespace ${NS} --force git-cli || true
tkn hub install task --namespace ${NS} git-cli


# Install Operator Tasks
${KUBECTL_CMD} ${NS} apply --filename ${TEKTON_DIR}/task-make.yaml
${KUBECTL_CMD} ${NS} apply --filename ${TEKTON_DIR}/task-setup-env.yaml
${KUBECTL_CMD} ${NS} apply --filename ${TEKTON_DIR}/task-buildah.yaml
${KUBECTL_CMD} ${NS} apply --filename ${TEKTON_DIR}/task-check-image.yaml
${KUBECTL_CMD} ${NS} apply --filename ${TEKTON_DIR}/task-oci-cli.yaml
${KUBECTL_CMD} --namespace ${NS} apply --filename ${TEKTON_DIR}/task-make.yaml
${KUBECTL_CMD} --namespace ${NS} apply --filename ${TEKTON_DIR}/task-setup-env.yaml
${KUBECTL_CMD} --namespace ${NS} apply --filename ${TEKTON_DIR}/task-buildah.yaml
${KUBECTL_CMD} --namespace ${NS} apply --filename ${TEKTON_DIR}/task-check-image.yaml
${KUBECTL_CMD} --namespace ${NS} apply --filename ${TEKTON_DIR}/task-oci-cli.yaml

# Install Operator Pipelines
${KUBECTL_CMD} ${NS} apply --filename ${TEKTON_DIR}/pipeline-operator-ci.yaml
${KUBECTL_CMD} --namespace ${NS} apply --filename ${TEKTON_DIR}/pipeline-operator-ci.yaml

# Install Operator test configmap
${KUBECTL_CMD} ${NS} apply --filename ${TEKTON_DIR}/os-cert-config.yaml
${KUBECTL_CMD} --namespace ${NS} apply --filename ${TEKTON_DIR}/os-cert-config.yaml
2 changes: 2 additions & 0 deletions tekton/operator-ci-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ spec:
value: "us-phoenix-1"
- name: oci-cli-secret
value: oci-cli-secret
- name: buildah-image
value: 'quay.io/buildah/stable:v1.39.3'

6 changes: 6 additions & 0 deletions tekton/pipeline-operator-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ spec:
type: string
description: The optional no proxy to use
default: ''
- name: buildah-image
type: string
description: The Buildah image to use
default: 'quay.io/buildah/stable:v1'
results:
- name: upload-result
description: The result of the upload task
Expand Down Expand Up @@ -155,6 +159,8 @@ spec:
value: $(tasks.setup-env.results.BUILDER_IMAGE_NAME)
- name: BUILD_EXTRA_ARGS
value: "--build-arg GoArch=$(tasks.setup-env.results.BUILD_ARCH) --build-arg GoVersion=$(tasks.setup-env.results.OPERATOR_GO_VERSION)"
- name: BUILDER_IMAGE
value: $(params.buildah-image)
- name: httpProxy
value: $(params.httpProxy)
- name: httpsProxy
Expand Down