Initial commit #1
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
name: Abbey Grant Kit Materialize | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
materialize: | |
runs-on: ubuntu-latest | |
env: | |
TF_VAR_abbey_token: ${{ secrets.ABBEY_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v2 | |
with: | |
terraform_wrapper: false | |
- name: Terraform Init | |
id: init | |
run: terraform init | |
env: | |
TF_HTTP_USERNAME: quickstart-basic | |
TF_HTTP_PASSWORD: ${{ secrets.ABBEY_TOKEN }} | |
- name: Terraform Apply | |
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
run: terraform apply -auto-approve -input=false | |
env: | |
TF_HTTP_USERNAME: quickstart-basic | |
TF_HTTP_PASSWORD: ${{ secrets.ABBEY_TOKEN }} | |
TF_VAR_abbey_token: ${{ secrets.ABBEY_TOKEN }} |