Skip to content

Commit

Permalink
test: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
MDavidson17 committed Mar 19, 2024
1 parent 5dda664 commit 86f0239
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand All @@ -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/
2 changes: 2 additions & 0 deletions publish-odr-parameters/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source: 's3://linz-workflows-scratch/mdavidson/imagery-target-test/'
target: 's3://linz-workflows-scratch/mdavidson/copy-test/'

0 comments on commit 86f0239

Please sign in to comment.