Skip to content

Commit

Permalink
pipelines/*: pass netrc workspace to prefetch task
Browse files Browse the repository at this point in the history
In the PipelineRun template, the users are going to pass the workspace
with something like this

    workspaces:
      - name: netrc
        secret:
          secretName: my-netrc

Signed-off-by: Adam Cmiel <[email protected]>
  • Loading branch information
chmeliik committed Jun 27, 2024
1 parent 6326826 commit 5df4e2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pipelines/template-build/template-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ spec:
workspace: workspace
- name: git-basic-auth
workspace: git-auth
- name: netrc
workspace: netrc
- name: build-container
when:
- input: $(tasks.init.results.build)
Expand Down Expand Up @@ -276,3 +278,5 @@ spec:
- name: workspace
- name: git-auth
optional: true
- name: netrc
optional: true

0 comments on commit 5df4e2d

Please sign in to comment.