diff options
| author | Alex <git@ajschof.me> | 2024-08-15 19:50:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-15 19:50:09 +0100 |
| commit | 83a05489bd5ec56f51ede83f52f8babcaa7eef70 (patch) | |
| tree | a690741aac60485522a578b655e7b32418172f44 /.github/workflows/deploy.yml | |
| parent | cf23d5d0a217ba91b50aebc0261ae6fa064bfcd4 (diff) | |
| parent | fc8e61c0e58df57195c6a33852a0a17ba34322c6 (diff) | |
| download | de-project-bentley-83a05489bd5ec56f51ede83f52f8babcaa7eef70.tar.gz de-project-bentley-83a05489bd5ec56f51ede83f52f8babcaa7eef70.zip | |
Merge pull request #41 from ajschofield/feature/ci-tests
pr: github action update
Diffstat (limited to '.github/workflows/deploy.yml')
| -rw-r--r-- | .github/workflows/deploy.yml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..372d0b3 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,37 @@ +name: deploy-terraform + +on: + push: + branches: + - test-ci/** # Adjust the branch based on our deployment strategy + +jobs: + deploy-terraform: + name: Deploy Terraform + runs-on: ubuntu-latest + environment: test-env + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + + - name: Install Terraform + uses: hashicorp/setup-terraform@v3 + + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: ${{ secrets.AWS_REGION }} + + - name: Terraform Init + working-directory: terraform + run: terraform init + + - name: Terraform Plan + working-directory: terraform + run: terraform plan + + - name: Terraform Apply + working-directory: terraform + run: terraform apply --auto-approve
\ No newline at end of file |
