Skip to content

Module 6/7/8/9

Module 6/7/8/9 #2

Workflow file for this run

name: Deploy
on:
pull_request:
branches:
- main
permissions:
id-token: write
contents: read
pull-requests: write
env:
ARM_CLIENT_ID: "${{ secrets.CLIENT_ID }}"
ARM_SUBSCRIPTION_ID: "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
ARM_TENANT_ID: "${{ secrets.AZURE_TENANT_ID }}"
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false
- name: Deploy azure resources
run: sh bin/deploy-pods.sh
- name: Wait 60 seconds for pods to deploy
run: sleep 60
- name: Output ip address of app
run: sh output-pod-ip.sh
- name: Destroy azure resources
run: sh bin/destroy-pods.sh