From 649b98ac7c22590c4ce498797223be62b1f3bbef Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Thu, 17 Oct 2024 11:15:23 +1300 Subject: [PATCH] DELETEME --- .github/workflows/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e61e2790..46aa9dce 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,6 +5,11 @@ jobs: main: name: Build, Format and Test runs-on: ubuntu-latest + permissions: + id-token: write + contents: read + env: + CLUSTER_NAME: Workflows steps: - uses: linz/action-typescript@9bf69b0f313b3525d3ba3116f26b1aff7eb7a6c0 # v3.1.0 with: @@ -22,6 +27,18 @@ jobs: - name: Lint workflows run: | ./argo-linux-amd64 lint --offline templates/ workflows/ + - 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_CI_ROLE }} + - name: Login to EKS + run: | + aws eks update-kubeconfig --name ${{ env.CLUSTER_NAME }} --region ap-southeast-2 + - name: Smoke test + run: | + ./argo-linux-amd64 --namespace=argo submit --wait --from=wftmpl/imagery-standardising --parameter=validate=false --parameter=gsd=0.3 --parameter=start_datetime=2017-12-02 --parameter=end_datetime=2018-03-11 --parameter=lifecycle="under development" --generate-name="test-ci-is-" deploy-prod: runs-on: ubuntu-latest concurrency: deploy-prod-${{ github.ref }}