Skip to content

Commit

Permalink
challenge05
Browse files Browse the repository at this point in the history
  • Loading branch information
adalidcht committed Aug 29, 2024
1 parent 4e0190a commit 2ec2a86
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions .github/workflows/deployazure.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
name: Deploy to Azure
on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
on:
push:
branches:
- main

- name: Log in to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Build and deploy Container App
uses: azure/container-apps-deploy-action@v1
with:
appSourcePath: ${{ github.workspace }}
acrName: ${{ vars.AZURE_PREFIX }}acr
resourceGroup: ${{ vars.AZURE_RG }}
containerAppName: ${{ vars.AZURE_PREFIX }}containerapp
containerAppEnvironment: ${{ vars.AZURE_PREFIX }}containerappenvironment
- name: Log in to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Build and deploy Container App
uses: azure/container-apps-deploy-action@v1
with:
appSourcePath: ${{ github.workspace }}
acrName: ${{ vars.AZURE_PREFIX }}acr
resourceGroup: ${{ vars.AZURE_RG }}
containerAppName: ${{ vars.AZURE_PREFIX }}containerapp
containerAppEnvironment: ${{ vars.AZURE_PREFIX }}containerappenvironment

0 comments on commit 2ec2a86

Please sign in to comment.