From 301a19766771c54c42e5ec5bfcecd1ee5a03eac5 Mon Sep 17 00:00:00 2001 From: Shane Earley Date: Thu, 29 Jun 2023 12:59:05 -0400 Subject: [PATCH] Add stage workflow for users cdk testing --- .github/workflows/featureuserscdk.yml | 42 +++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/featureuserscdk.yml diff --git a/.github/workflows/featureuserscdk.yml b/.github/workflows/featureuserscdk.yml new file mode 100644 index 000000000..fee687d90 --- /dev/null +++ b/.github/workflows/featureuserscdk.yml @@ -0,0 +1,42 @@ +name: Push +on: + push: + branches: [feature/users-cdk] + +env: + PROJECT: casimir + STAGE: featureuserscdk + AWS_REGION: us-east-2 + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + + # Skip any pushes with commit flag '(skip deploy)' + # Comment out for testing + if: ${{ !contains(github.event.head_commit.message, '(skip deploy)') }} + + steps: + - name: Check out the repo + uses: actions/checkout@v3 + with: + submodules: 'recursive' + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: ${{ env.AWS_REGION }} + + - name: Install and build all package dependencies + run: npm ci + env: + PUBLIC_STAGE: ${{ env.STAGE }} + + - name: Deploy cdk infrastructure + run: npm run deploy:cdk + + # - name: Migrate users database + # run: npm run migrations:users \ No newline at end of file