Skip to content

Commit

Permalink
add pipeline task for pushing the dockerimage
Browse files Browse the repository at this point in the history
Signed-off-by: Stephanie <[email protected]>
  • Loading branch information
yangcao77 committed Aug 4, 2023
1 parent 0667764 commit ea4fa3a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .tekton/push-cdq-analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: pipeline-to-push-cdq-image
annotations:
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push" && target_branch == "main" && "cdq-analysis/***".pathChanged()
pipelinesascode.tekton.dev/max-keep-runs: "2"
spec:
params:
- name: git-url
value: "{{repo_url}}"
- name: revision
value: "{{revision}}"
- name: output-image
value: "quay.io/redhat-appstudio/cdq-analysis:{{revision}}"
- name: path-context
value: "cdq-analysis"
- name: infra-deployment-update-script
value: |
sed -i -e 's|\(https://github.com/redhat-appstudio/application-service/.*?ref=\)\(.*\)|\1{{ revision }}|' -e 's/\(newTag: \).*/\1{{ revision }}/' components/has/cdq-analysis/kustomization.yaml
pipelineRef:
name: docker-build
bundle: quay.io/redhat-appstudio-tekton-catalog/pipeline-core-services-docker-build:latest
workspaces:
- name: workspace
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi

0 comments on commit ea4fa3a

Please sign in to comment.