Skip to content

Commit

Permalink
Merge pull request #5 from smasset-orange/feature/fix-github-actions-…
Browse files Browse the repository at this point in the history
…envvar

Various fixes in GitHub actions
  • Loading branch information
vlandemaine-orange authored Feb 21, 2022
2 parents 569d753 + 1f54377 commit f19fad4
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,36 @@ name: 'Terraform GitHub Actions'
on:
- push
- pull_request
env:
TF_VERSION: 0.13.0
jobs:
terraform:
name: 'Terraform'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@master
uses: actions/checkout@v2
- name: 'Terraform Format'
uses: hashicorp/terraform-github-actions@master
uses: hashicorp/terraform-github-actions@v0.8.0
with:
tf_actions_version: 0.13.0
tf_actions_version: ${{ env.TF_VERSION }}
tf_actions_subcommand: 'fmt'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 'Terraform Init'
uses: hashicorp/terraform-github-actions@master
uses: hashicorp/terraform-github-actions@v0.8.0
with:
tf_actions_version: 0.13.0
tf_actions_version: ${{ env.TF_VERSION }}
tf_actions_subcommand: 'init'
args: '-input=false'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 'Terraform Validate'
uses: hashicorp/terraform-github-actions@master
uses: hashicorp/terraform-github-actions@v0.8.0
with:
tf_actions_version: 0.13.0
tf_actions_version: ${{ env.TF_VERSION }}
tf_actions_subcommand: 'validate'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OS_AUTH_URL: OS_AUTH_URL='https://iam.eu-west-0.prod-cloud-ocb.orange-business.com/v3'
OS_AUTH_URL: whatever
OS_REGION_NAME: whatever

0 comments on commit f19fad4

Please sign in to comment.