Skip to content

Commit

Permalink
ci: remove generate-name & exclude collection TDE-1058 (#282)
Browse files Browse the repository at this point in the history
The logic to use $base (the name of the parameters.yaml file) to name
the argo workflow submitted no longer works.
This change will give each submission the name `publish-odr-file-copy-`
(so that can be distinguished from publihs-odr run by any other means)

In addition, the collection will be "synced" later on this workflow and
include any changed made in the PR that will not be in the /flat/
directory. Therefore we should exlude it here.


Related linz/imagery/ changes:
linz/imagery#377
linz/imagery#379
  • Loading branch information
MDavidson17 authored Mar 25, 2024
1 parent 28cd831 commit 20bbcad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ jobs:
mapfile -d '' modified_parameter_files < <(git diff --name-only --diff-filter=AM -z ${{ github.event.before }} ${{ github.event.after }} -- "publish-odr-parameters/*.yaml")
for file in "${modified_parameter_files[@]}"; do
base=$(basename "${file%.yaml}")
./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" --generate-name "publish-odr-$base-"
./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 exclude="collection.json$" --generate-name "publish-odr-file-copy-"
done
- name: AWS Configure
Expand Down

0 comments on commit 20bbcad

Please sign in to comment.