Fixed tekton pipelines
This commit is contained in:
@@ -41,6 +41,7 @@ spec:
|
||||
- --destination=$(params.IMAGE)
|
||||
- --oci-layout-path=/workspace/src/image-digest
|
||||
- --digest-file=/tekton/results/IMAGE_DIGEST
|
||||
- --cache=true
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
volumeMounts:
|
||||
|
@@ -7,6 +7,12 @@ spec:
|
||||
params:
|
||||
- name: TARGET
|
||||
description: The make target to run
|
||||
- name: REPO
|
||||
description: The name of the repo
|
||||
- name: PR_ID
|
||||
description: The ID of the pull request
|
||||
- name: SHA
|
||||
description: The commit sha
|
||||
resources:
|
||||
inputs:
|
||||
- name: src
|
||||
@@ -16,14 +22,27 @@ spec:
|
||||
workingDir: /workspace/src
|
||||
image: docker.cluster.fun/averagemarcus/ci-builder:latest
|
||||
script: |
|
||||
make --dry-run -t $(params.TARGET) &> /dev/null && make $(params.TARGET) || echo "No '$(params.TARGET)' target found, skipping"
|
||||
make --dry-run $(params.TARGET) &> /dev/null || (echo "No '$(params.TARGET)' target found, skipping" && exit 0)
|
||||
make $(params.TARGET)
|
||||
env:
|
||||
- name: REPO
|
||||
value: $(params.REPO)
|
||||
- name: PR_ID
|
||||
value: $(params.PR_ID)
|
||||
- name: SHA
|
||||
value: $(params.SHA)
|
||||
- name: ACCESS_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: gitea-access-token
|
||||
key: access-token
|
||||
- name: KUBECONFIG
|
||||
value: /root/.kube/config
|
||||
volumeMounts:
|
||||
- name: kubeconfig
|
||||
mountPath: /root/.kube/config
|
||||
subPath: config
|
||||
volumes:
|
||||
- name: kubeconfig
|
||||
secret:
|
||||
secretName: kubeconfig
|
||||
|
Reference in New Issue
Block a user