-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12119ea
commit 1a7bada
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Deploy Infrastructure | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
jobs: | ||
deploy: | ||
environment: | ||
name: Production | ||
url: https://kitten-science.com | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4 | ||
with: | ||
role-to-assume: arn:aws:iam::022327457572:role/ks-infrastructure-maintainer | ||
aws-region: eu-west-1 | ||
|
||
- name: Terraform Init | ||
run: terraform init | ||
working-directory: terraform | ||
|
||
- name: Terraform Apply | ||
run: terraform apply -auto-approve | ||
working-directory: terraform |
3 changes: 2 additions & 1 deletion
3
.github/workflows/deploy-infra.yml → .github/workflows/infra-test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
name: Deploy Infrastructure | ||
name: QA | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- renovate/* | ||
|
||
permissions: | ||
contents: read | ||
|