Merge pull request #5 from HideyoshiNakazone/staging
Staging - Terminal Fixes CI/CD so It Runs in Main
This commit is contained in:
4
.github/workflows/terraform.yml
vendored
4
.github/workflows/terraform.yml
vendored
@@ -3,16 +3,14 @@ name: 'Terraform'
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "staging", "main" ]
|
branches: [ "staging", "main" ]
|
||||||
pull_request:
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
terraform:
|
terraform:
|
||||||
name: 'Terraform - Staging'
|
name: 'Terraform'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.ref == 'refs/heads/staging'
|
|
||||||
env:
|
env:
|
||||||
TF_WORKSPACE: ${{github.ref == 'refs/heads/\"main\"' && 'prod' || 'staging'}}
|
TF_WORKSPACE: ${{github.ref == 'refs/heads/\"main\"' && 'prod' || 'staging'}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user