Created
November 26, 2019 13:30
-
-
Save dehio3/5689f206067bc59b56ad062346f01e8e to your computer and use it in GitHub Desktop.
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: 'Terraform GitHub Actions apply' | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
terraform: | |
name: 'Terraform' | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@master | |
- name: 'Terraform Init' | |
uses: hashicorp/terraform-github-actions@master | |
with: | |
tf_actions_version: 0.12.13 | |
tf_actions_subcommand: 'init' | |
tf_actions_working_dir: '.' | |
tf_actions_comment: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: 'Terraform Apply' | |
uses: hashicorp/terraform-github-actions@master | |
with: | |
tf_actions_version: 0.12.13 | |
tf_actions_subcommand: 'apply' | |
tf_actions_working_dir: '.' | |
tf_actions_comment: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment