Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(basemaps): Update the standardise workflow and create-config workflow to use cogify create-config #182

Merged
merged 6 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 15 additions & 14 deletions workflows/basemaps/create-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
entrypoint: main
arguments:
parameters:
- name: version-basemaps-cli
- name: version_basemaps_cli
value: "v6"
- name: location
value: "s3://bucket/path/to"
Expand All @@ -26,27 +26,28 @@ spec:
- name: location
value: "{{workflow.parameters.location}}"
- name: create-config
retryStrategy:
limit: "2"
inputs:
parameters:
- name: location
description: Location of the imagery to create config for
container:
image: ghcr.io/linz/basemaps/cli:{{=sprig.trim(workflow.parameters['version-basemaps-cli'])}}
command: [node, index.cjs]
image: ghcr.io/linz/basemaps/cli:{{=sprig.trim(workflow.parameters.version_basemaps_cli)}}
command: [node, /app/node_modules/.bin/cogify]
env:
- name: AWS_ROLE_CONFIG_PATH
value: s3://linz-bucket-config/config.json
value: s3://linz-bucket-config/config.basemaps.json
args:
[
"-V",
"create-config",
"--path",
"{{=sprig.trim(inputs.parameters.location)}}",
"--output",
"/tmp/url",
"--commit",
]
- "config"
- "{{ inputs.parameters.location }}"
outputs:
parameters:
- name: url
description: Basemaps URL to view the imagery
valueFrom:
path: "/tmp/url"
path: "/tmp/cogify/config-url"
- name: config
description: Location of the config file
valueFrom:
path: "/tmp/cogify/config-path"
29 changes: 14 additions & 15 deletions workflows/imagery/standardising.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
- name: version-argo-tasks
value: "v2"
- name: version-basemaps-cli
value: "v6.39.0-15-g3e982390"
value: "v6"
- name: version-topo-imagery
value: "v3"
- name: source
Expand Down Expand Up @@ -484,32 +484,31 @@ spec:
]

- name: create-config
retryStrategy:
limit: "2"
inputs:
parameters:
- name: location
description: Location of the imagery to create config for
container:
image: "ghcr.io/linz/basemaps/cli:{{=sprig.trim(workflow.parameters['version-basemaps-cli'])}}"
command: [node, index.cjs]
command: [node, /app/node_modules/.bin/cogify]
env:
- name: AWS_ROLE_CONFIG_PATH
value: s3://linz-bucket-config/config.json
value: s3://linz-bucket-config/config.basemaps.json
args:
[
"-V",
"create-config",
"--path",
"{{inputs.parameters.location}}flat/",
"--output",
"/tmp/url",
"--title",
"{{=sprig.trim(workflow.parameters.title)}}",
"--commit",
]
- "config"
- "{{ inputs.parameters.location }}flat/"
outputs:
parameters:
- name: url
description: Basemaps URL to view the imagery
valueFrom:
path: "/tmp/cogify/config-url"
- name: config
description: Location of the config file
valueFrom:
path: "/tmp/url"
path: "/tmp/cogify/config-path"

volumes:
- name: ephemeral
Expand Down