Skip to content

Commit

Permalink
fix: standardise source input so can be used as template
Browse files Browse the repository at this point in the history
  • Loading branch information
MDavidson17 committed Aug 28, 2023
1 parent 026d78e commit b84ec97
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions workflows/imagery/ascii-standardise-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: imagery-standardising-publish-import-
generateName: ascii-imagery-standardising-publish-import-
namespace: argo
spec:
parallelism: 50
Expand Down Expand Up @@ -70,6 +70,10 @@ spec:
templateRef:
name: imagery-standardising
template: main
arguments:
parameters:
- name: source
value: "{{tasks.get-location.outputs.parameters.location}}translated-asc-files/"
depends: "convert-asc-files"

- name: publish
Expand All @@ -79,7 +83,7 @@ spec:
arguments:
parameters:
- name: source
value: "{{tasks.get-location.outputs.parameters.location}}translated-asc-files/"
value: "{{tasks.get-location.outputs.parameters.location}}flat/"
- name: include
value: ".tiff?$|.json$"
- name: group
Expand Down
5 changes: 4 additions & 1 deletion workflows/imagery/standardising.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ spec:
imagePullPolicy: Always
templates:
- name: main
inputs:
parameters:
- name: source
dag:
tasks:
- name: generate-ulid
Expand All @@ -223,7 +226,7 @@ spec:
- name: include
value: "{{workflow.parameters.include}}"
- name: source
value: "{{=sprig.trim(workflow.parameters.source)}}"
value: "{{=sprig.trim(inputs.parameters.source)}}"
- name: source_epsg
value: "{{=sprig.trim(workflow.parameters['source-epsg'])}}"
- name: validate
Expand Down

0 comments on commit b84ec97

Please sign in to comment.