Skip to content

Commit

Permalink
refactor: bring back logic into workflow from argo-tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
amfage committed Aug 16, 2023
1 parent 95da2d3 commit 2e6e72c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion workflows/imagery/publish-copy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ spec:
env:
- name: AWS_ROLE_CONFIG_PATH
value: s3://linz-bucket-config/config.json
- name: GIT_AUTHOR_NAME
value: "{{=sprig.regexFind('(elevation|imagery)', workflow.parameters.target)}}[bot]"
- name: GIT_AUTHOR_EMAIL
value: "{{=sprig.regexFind('(elevation|imagery)', workflow.parameters.target)}}@linz.govt.nz"
volumeMounts:
- name: secret-volume
mountPath: "/root/.ssh/"
Expand All @@ -198,7 +202,7 @@ spec:
"--target",
"{{=sprig.trim(workflow.parameters.target)}}",
"--repo-name",
"{{=sprig.regexFind('(elevation|imagery)', workflow.parameters.target)}}",
"linz/{{=sprig.regexFind('(elevation|imagery)', workflow.parameters.target)}}",
]
volumes:
- name: secret-volume
Expand Down

0 comments on commit 2e6e72c

Please sign in to comment.