Skip to content

Azure Deploy

Azure Deploy #9

Workflow file for this run

name: Azure Deploy
on:
push:
branches:
- main
paths:
- 'generate-url-shortene/infrastructure/**'
pull_request:
paths:
- 'generate-url-shortene/infrastructure/**'
workflow_dispatch: # Allows you to run the workflow manually
permissions:
id-token: write
contents: read
jobs:
deploy-dev:
runs-on: ubuntu-latest
environment: development
steps:
- uses: actions/checkout@v4
- name: Azure Login
uses: azure/[email protected]
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- uses: azure/[email protected]
with:
inlineScript: |
#!/bin/bash
az group create --name ${{ vars.RESOURCE_GROUP_NAME }} --location ${{ vars.RESOURCE_GROUP_LOCATION }}
echo "Resource Group Created"
- name: Deploy Bicep Template
uses: azure/arm-deploy@v2
with:
scope: resourcegroup
resourceGroupName: ${{ vars.RESOURCE_GROUP_NAME }}
template: ./infrastructure/main.bicep
failOnStdErr: true