Skip to content

Commit f29bf27

Browse files
committed
test target
1 parent 29c2717 commit f29bf27

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ jobs:
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

@@ -94,9 +95,15 @@ jobs:
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

0 commit comments

Comments
 (0)