Skip to content

Commit

Permalink
feat: add lint template
Browse files Browse the repository at this point in the history
  • Loading branch information
MDavidson17 committed Nov 8, 2023
1 parent 0a3c98a commit 9df1935
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions templates/argo-tasks/lint-inputs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
# Template from linz/argo-tasks
# see https://github.com/linz/argo-tasks#lint-inputs
name: tpl-at-lint-inputs
spec:
templateDefaults:
container:
imagePullPolicy: Always
entrypoint: main
templates:
- name: main
inputs:
parameters:
- name: path
description: s3 path to lint

- name: version
description: argo-task Container version to use
default: 'v2'

container:
image: '019359803926.dkr.ecr.ap-southeast-2.amazonaws.com/argo-tasks:{{= inputs.parameters.version }}'
command: [node, /app/index.js]
env:
- name: AWS_ROLE_CONFIG_PATH
value: s3://linz-bucket-config/config.json
args:
- 'lint-inputs'
- '{{inputs.parameters.path}}'

0 comments on commit 9df1935

Please sign in to comment.