Skip to content

Commit

Permalink
fix: pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
shejri committed Sep 23, 2024
1 parent db4d57b commit 8d098d4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ jobs:
with:
python-version: '3.12'
working-directory: ${{ github.event.inputs.directory }}
- name: Setup Python
run: |
python -m venv venv
ls -lah venv/bin
source venv/bin/activate
pip install -r requirements.txt
working-directory: ${{ github.event.inputs.directory }}

- name: 'Terraform apply'
if: |
github.event.inputs.action == 'apply' &&
Expand All @@ -119,10 +127,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_PAT_TOKEN }}
GITHUB_OWNER: ${{ vars.GH_OWNER }}
run: |
python -m venv venv
source venv/bin/activate
which python
pip install -r requirements.txt
terraform apply -auto-approve main.tfplan
- name: 'Terraform destroy'
Expand Down

0 comments on commit 8d098d4

Please sign in to comment.