Skip to content

Refactor working directory and add resource group creation in azure-d… #21

Refactor working directory and add resource group creation in azure-d…

Refactor working directory and add resource group creation in azure-d… #21

Workflow file for this run

on:
push:
branches:
# - main
- 'feature/**'
paths:
- 'infra/**'
name: Deploy to Azure Resource Group
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@main
- name: Log into Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Resource Group Test
run: |
az deployment sub create \
--location norwayeast \
--template-file infra/modules/resourceGroup.bicep \
--parameters resourceGroupName='rg-bds-test' resourceGroupLocation='norwayeast' \
--subscription ${{ secrets.AZURE_SUBSCRIPTION }}
- name: Deploy Azure Container Registry
uses: azure/arm-deploy@v1
with:
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION }}
resourceGroupName: ${{ secrets.AZURE_RG }}
template: infra/modules/containerRegistry.bicep
failOnStdErr: false
# - name: Deploy Azure Storage Account
# uses: azure/arm-deploy@v1
# with:
# subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION }}
# resourceGroupName: ${{ secrets.AZURE_RG }}
# template: infra/modules/storageAccount.bicep
# failOnStdErr: false