Skip to content

Commit

Permalink
Add a workspace for the source checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
samdoran committed Sep 20, 2024
1 parent c56008e commit a87992d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .tekton/pipeline-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ spec:

- name: pathInRepo
value: tasks/parse-build-deploy-script/parse-build-deploy-script.yaml
workspaces:
- name: source
workspace: workspace
runAfter:
- clone-repository

Expand Down Expand Up @@ -249,6 +252,9 @@ spec:

- name: pathInRepo
value: tasks/create-frontend-dockerfile/create-frontend-dockerfile.yaml
workspaces:
- name: source
workspace: workspace
runAfter:
- parse-build-deploy-script

Expand Down
12 changes: 12 additions & 0 deletions .tekton/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,15 @@ spec:
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'

- name: workspace
volumeClaimTemplate:
metadata:
creationTimestamp: null
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
status: {}
12 changes: 12 additions & 0 deletions .tekton/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,15 @@ spec:
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'

- name: workspace
volumeClaimTemplate:
metadata:
creationTimestamp: null
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
status: {}

0 comments on commit a87992d

Please sign in to comment.