File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 2727
2828 publish-odr :
2929 needs : check-vector-update
30- if : needs.check-vector-update.outputs.changed == 'true' && github.ref == 'refs/heads/master' && github.event_name == 'push'
30+ if : needs.check-vector-update.outputs.changed == 'true'
31+ # if: needs.check-vector-update.outputs.changed == 'true' && github.ref == 'refs/heads/master' && github.event_name == 'push'
3132 name : Publish ODR
3233 runs-on : ubuntu-latest
3334
9495 jq -r '.layers[0] | to_entries[]
9596 | select(.key == "2193" or .key == "3857")
9697 | .value
97- | sub("/ topographic-v2.tar.co$"; "")' config/tileset/topographic-v2.json
98+ | sub("topographic-v2.tar.co$"; "")' config/tileset/topographic-v2.json
9899 )
99100
100101 for file in "${modified_parameter_files[@]}"; do
101- ./argo-linux-amd64 submit --wait --from wftmpl/copy -n argo -f "$file" -p aws_role_config_path="s3://linz-bucket-config/config-write.open-data-registry.json" -p include="\.mbtiles?$|\.json$" -p exclude="collection.json$" --generate-name "publish-odr-file-copy-"
102+ # Set the target path based on the source file
103+ # i.e. source s3://linz-basemaps/vector/2193/topographic/01JYDG2VFBM0H057D3S4TB8GFP/ to target s3://nz-topography/vector/2193/
104+ target=$(echo "$file" | sed -E 's|^s3://linz-basemaps/vector/|s3://nz-topography/vector/|' | sed -E 's|/topographic/[^/]+/?$|/|')
105+ echo "Submitting Argo job: source=$file target=$target"
106+
107+ # Submit the Argo workflow for each projection
108+ ./argo-linux-amd64 submit --wait --from wftmpl/copy -n argo -p source="$file" -p target="s3://linz-imagery-staging/test/sample_target/" -p aws_role_config_path="s3://linz-bucket-config/config-write.open-data-registry.json" -p include="\.mbtiles?$|\.json$" -p exclude="collection.json$" --generate-name "publish-odr-file-copy-"
102109 done
You can’t perform that action at this time.
0 commit comments