From 72c08abaf845e7bf778f8f0feecf78ebb3eed561 Mon Sep 17 00:00:00 2001 From: ernest-tpximpact Date: Mon, 13 May 2024 10:53:58 +0100 Subject: [PATCH] Update GHA --- .github/workflows/deploy.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..c405525a --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: Deploy dags To aws + +on: + push: + branches: [setup-gha-workflow] + workflow_dispatch: + inputs: + environment: + type: environment + description: The environment to deploy to. + +jobs: + deploy: + runs-on: ubuntu-latest + environment: development + # env: + steps: + - uses: actions/checkout@v4 + + - run: | + curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + unzip -q awscliv2.zip + sudo ./aws/install --update + sudo apt-get update + sudo apt-get install -y rsync + + - uses: aws-actions/configure-aws-credentials@v1-node16 + with: + aws-access-key-id: ${{ secrets.DEPLOY_AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.DEPLOY_AWS_SECRET_ACCESS_KEY }} + aws-region: eu-west-2