Skip to content

Commit

Permalink
fix: get repo-name
Browse files Browse the repository at this point in the history
  • Loading branch information
amfage committed Aug 10, 2023
1 parent 09910b1 commit 7874ee3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions workflows/imagery/publish-copy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ spec:
value: "{{inputs.parameters.group-size}}"
- name: version-argo-tasks
value: "{{workflow.parameters.version-argo-tasks}}"
when: "{{=sprig.mustRegexMatch('s3://linz-(elevation|imagery)/', workflow.parameters.target)}}"
when: "{{=sprig.regexMatch('s3://linz-(elevation|imagery)/', workflow.parameters.target)}}"
- name: create-manifest
template: create-manifest
arguments:
Expand Down Expand Up @@ -185,10 +185,6 @@ spec:
env:
- name: AWS_ROLE_CONFIG_PATH
value: s3://linz-bucket-config/config.json
- name: GIT_AUTHOR_NAME
value: "imagery[bot]"
- name: GIT_AUTHOR_EMAIL
value: "imagery@linz.govt.nz"
volumeMounts:
- name: secret-volume
mountPath: "/root/.ssh/"
Expand All @@ -201,6 +197,8 @@ spec:
"{{=sprig.trim(inputs.parameters.source)}}",
"--target",
"{{=sprig.trim(workflow.parameters.target)}}",
"--repo-name",
"{{=sprig.nospace(sprig.cat('linz/', sprig.regexFind('(elevation|imagery)', workflow.parameters.target)))}}"
]
volumes:
- name: secret-volume
Expand Down

0 comments on commit 7874ee3

Please sign in to comment.