From 86f02392208596ff6f5b9f3970e0a51bef68c17e Mon Sep 17 00:00:00 2001 From: Megan Davidson Date: Wed, 20 Mar 2024 11:28:18 +1300 Subject: [PATCH] test: testing --- .github/workflows/publish.yml | 56 ++++++++++++++++---------------- publish-odr-parameters/test.yaml | 2 ++ 2 files changed, 30 insertions(+), 28 deletions(-) create mode 100644 publish-odr-parameters/test.yaml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5716175..4db67cd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -39,14 +39,14 @@ jobs: runs-on: ubuntu-latest concurrency: publish-${{ github.ref }} needs: main - if: ${{ github.ref == 'refs/heads/master' }} + # if: ${{ github.ref == 'refs/heads/master' }} - environment: - name: prod + # environment: + # name: prod - permissions: - id-token: write - contents: read + # permissions: + # id-token: write + # contents: read steps: - uses: linz/action-typescript@dee99184c4305aea6c380a52db9b2d7abaaa3e78 # v3 @@ -87,7 +87,7 @@ jobs: with: aws-region: ap-southeast-2 mask-aws-account-id: true - role-to-assume: ${{ secrets.AWS_EKS_CI_ROLE }} + role-to-assume: ${{ secrets.EKS_TEST }} - name: Login to EKS run: | @@ -112,26 +112,26 @@ jobs: 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" --generate-name "publish-odr-$base-" done - - name: AWS Configure - uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4 - with: - aws-region: ap-southeast-2 - mask-aws-account-id: true - role-to-assume: ${{ secrets.AWS_ODR_CI_ROLE }} - - - name: AWS Configure ODR - uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4 - with: - aws-region: ap-southeast-2 - mask-aws-account-id: true - role-to-assume: ${{ secrets.AWS_ODR_DATA_MANAGER_ROLE }} - role-chaining: true - - # Sync STAC files only on push to 'master' - - name: Sync STAC - uses: docker://ghcr.io/linz/argo-tasks:v3 - with: - args: stac-sync /github/workspace/stac/ s3://nz-elevation/ + # - name: AWS Configure + # uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4 + # with: + # aws-region: ap-southeast-2 + # mask-aws-account-id: true + # role-to-assume: ${{ secrets.AWS_ODR_CI_ROLE }} + + # - name: AWS Configure ODR + # uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4 + # with: + # aws-region: ap-southeast-2 + # mask-aws-account-id: true + # role-to-assume: ${{ secrets.AWS_ODR_DATA_MANAGER_ROLE }} + # role-chaining: true + + # # Sync STAC files only on push to 'master' + # - name: Sync STAC + # uses: docker://ghcr.io/linz/argo-tasks:v3 + # with: + # args: stac-sync /github/workspace/stac/ s3://nz-elevation/ diff --git a/publish-odr-parameters/test.yaml b/publish-odr-parameters/test.yaml new file mode 100644 index 0000000..ecb2ab4 --- /dev/null +++ b/publish-odr-parameters/test.yaml @@ -0,0 +1,2 @@ +source: 's3://linz-workflows-scratch/mdavidson/imagery-target-test/' +target: 's3://linz-workflows-scratch/mdavidson/copy-test/'