Skip to content

Commit

Permalink
Update the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ozennou committed Dec 24, 2024
1 parent b25894b commit 97e6cb2
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/infra-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,21 @@ jobs:
run: |
terraform plan
- name: plan
- name: apply
if: github.event_name == 'push'
run: |
terraform apply -auto-approve
terraform apply -auto-approve
- name: save azure VMs public ip address
if: github.event_name == 'push'
run: terraform output > virtual_machines.ini
working-directory: ./

- name: Upload virtual_machines.ini
if: github.event_name == 'push'
uses: actions/upload-artifact@v4
with:
name: virtual machines ip address
path: ./virtual_machines.ini
retention-days: 1

0 comments on commit 97e6cb2

Please sign in to comment.