Skip to content

Commit

Permalink
vai assim mesmo
Browse files Browse the repository at this point in the history
  • Loading branch information
italopessoa committed Sep 10, 2024
1 parent 50823fa commit adf6f48
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ env:
TF_API_TOKEN: "${{ secrets.TF_API_TOKEN }}"
TF_WORKSPACE: "${{ vars.TF_WORKSPACE }}"
CONFIG_DIRECTORY: "./"
ENVIRONMENT: dev

permissions:
contents: read
Expand All @@ -21,7 +20,7 @@ jobs:
ENVIRONMENT: $ENVIRONMENT
name: 'Test'
runs-on: ubuntu-latest
environment: ${{ env.ENVIRONMENT }}
environment: dev

defaults:
run:
Expand Down Expand Up @@ -65,7 +64,7 @@ jobs:
if: github.event_name == 'pull_request'
name: "Terraform Plan"
runs-on: ubuntu-latest"
environment: ${{ env.ENVIRONMENT }}
environment: dev
permissions:
contents: read
pull-requests: write
Expand All @@ -81,7 +80,7 @@ jobs:
database_name = "${{ vars.BMB_MYSQL_DATABASE }}"
username = "${{ secrets.BMB_MYSQL_USER }}"
password = "${{ secrets.BMB_MYSQL_PASSWORD }}"
environment = "${{ env.ENVIRONMENT }}"
environment = "dev"
EOF
- name: Upload Configuration
Expand Down Expand Up @@ -151,7 +150,7 @@ jobs:
if: github.ref == 'refs/heads/main'
name: "Terraform Apply"
runs-on: ubuntu-latest
environment: ${{ env.ENVIRONMENT }}
environment: dev
permissions:
contents: read
steps:
Expand All @@ -166,7 +165,7 @@ jobs:
database_name = "${{ vars.BMB_MYSQL_DATABASE }}"
username = "${{ secrets.BMB_MYSQL_USER }}"
password = "${{ secrets.BMB_MYSQL_PASSWORD }}"
environment = "${{ env.ENVIRONMENT }}"
environment = "dev"
EOF
- name: Upload Configuration
Expand Down

0 comments on commit adf6f48

Please sign in to comment.