-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 1.06 KB
/
commit.yml
File metadata and controls
34 lines (33 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Push
run-name: ${{ github.event.number }} - ${{ github.ref }} - "${{ github.sha }}"
on: push
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Clone & Checkout
uses: actions/checkout@v5
with:
token: FIXME
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "1.12.2" # TODO; ensure ok
deploy:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Clone & Checkout
uses: actions/checkout@v5
with:
token: FIXME
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "1.12.2" # TODO; ensure ok
# - name: Get AWS credentials
# # TODO: this
# # TODO: backend bucket
# - run: terraform init -backend-config='bucket=${{ inputs.account_name }}-${{ inputs.environment }}-${{ inputs.terraform_bucket_suffix }}'
# - run: terraform plan -var-file=production.tfvars -out=plan.tf
# - run: terraform apply -auto-approve plan.tf