From fa646886ebcbdc1e5d2da6e6901b7bee7a8ac1fc Mon Sep 17 00:00:00 2001 From: Megan Davidson Date: Wed, 8 Nov 2023 15:27:12 +1300 Subject: [PATCH] feat: run lint as first step of publish --- workflows/imagery/publish-copy.yaml | 13 +++++++++++++ workflows/imagery/publish-odr.yaml | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/workflows/imagery/publish-copy.yaml b/workflows/imagery/publish-copy.yaml index 5e287bff5..12b4c1390 100644 --- a/workflows/imagery/publish-copy.yaml +++ b/workflows/imagery/publish-copy.yaml @@ -36,6 +36,8 @@ spec: value: '100Gi' - name: transform value: 'f' + - name: 'skip-lint' + value: 'false' templateDefaults: container: imagePullPolicy: Always @@ -49,6 +51,17 @@ spec: - name: group-size dag: tasks: + - name: lint-inputs + templateRef: + name: tpl-at-lint-inputs + template: main + arguments: + parameters: + - name: version + value: '{{workflow.parameters.version-argo-tasks}}' + - name: path + value: '{{workflow.parameters.target}}' + when: '{{workflow.parameters.skip-lint}} != true' - name: create-manifest-github templateRef: name: tpl-create-manifest diff --git a/workflows/imagery/publish-odr.yaml b/workflows/imagery/publish-odr.yaml index b957d00d3..1bd5c0bdd 100644 --- a/workflows/imagery/publish-odr.yaml +++ b/workflows/imagery/publish-odr.yaml @@ -36,6 +36,8 @@ spec: value: '100Gi' - name: transform value: 'f' + - name: skip-lint + value: 'false' templateDefaults: container: imagePullPolicy: Always @@ -49,6 +51,17 @@ spec: - name: group-size dag: tasks: + - name: lint-inputs + templateRef: + name: tpl-at-lint-inputs + template: main + arguments: + parameters: + - name: version + value: '{{workflow.parameters.version-argo-tasks}}' + - name: path + value: '{{workflow.parameters.target}}' + when: '{{workflow.parameters.skip-lint}} != true' - name: create-manifest-github templateRef: name: tpl-create-manifest