Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
MDavidson17 committed Sep 18, 2023
1 parent 461a7a9 commit 7c1f1e8
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/test-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
on: [push]

jobs:
main:
name: Workflow Test
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

steps:
- uses: actions/checkout@v1

- name: Use Node.js 18.x
uses: actions/setup-node@v2.2.0
with:
node-version: "18.x"

- name: Setup kubectl
uses: azure/setup-kubectl@v3
with:
version: "latest"

- name: AWS Configure
uses: aws-actions/configure-aws-credentials@v1.6.1
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 Workflow --region ap-southeast-2 --role-arn ${{ secrets.AWS_EKS_ROLE }}
- name: Check EKS connection
run: |
kubectl get nodes
- name: Install Argo
run: |
curl -sLO https://github.com/argoproj/argo-workflows/releases/download/v3.4.0-rc2/argo-linux-amd64.gz
gunzip argo-linux-amd64.gz
chmod +x argo-linux-amd64
./argo-linux-amd64 version
- name: Submit workflow
run: |
echo $PWD
./argo-linux-amd64 submit --from wftmpl/publish-copy -n argo -f ./argo-submits/test-params.yaml --generate-name test-mdavidson-gh-action-
- name: test argo outputs
run: echo "Argo URL $WORKFLOW_URL"
env:
WORKFLOW_URL: ${{ steps.argo.outputs.WORKFLOW_URL }}
2 changes: 2 additions & 0 deletions argo-submits/test-params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"source": "s3://linz-imagery-staging/test/sample/"
"target": "s3://linz-workflow-artifacts/mdavidson/test-actions/"

0 comments on commit 7c1f1e8

Please sign in to comment.