-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor azure-deploy-image-test.yml: Remove unused code and update r…
…esource group creation
- Loading branch information
Showing
8 changed files
with
69 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
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@v4 | ||
|
||
- name: Log into Azure | ||
uses: azure/login@v2 | ||
with: | ||
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
|
||
- name: Deploy Azure Resources test | ||
uses: azure/arm-deploy@v2 | ||
with: | ||
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION }} | ||
resourceGroupName: ${{ secrets.AZURE_RG_TEST }} | ||
template: infra/main.bicep | ||
failOnStdErr: false | ||
|
||
# - 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@v2 | ||
# 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 | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@description('The name of the Azure Container Registry.') | ||
param acrName string | ||
|
||
@description('The location for the registry.') | ||
param location string = 'norwayeast' | ||
|
||
module containerRegistry 'modules/containerRegistry.bicep' = { | ||
name: acrName | ||
params: { | ||
acrName: acrName | ||
location: location | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.