Skip to content

Merge pull request #29 from syonfoppen/feuture/syon-room-creation-page #9

Merge pull request #29 from syonfoppen/feuture/syon-room-creation-page

Merge pull request #29 from syonfoppen/feuture/syon-room-creation-page #9

name: Trigger auto deployment for app-syon-estiblazor
# When this action will be executed
on:
# Automatically trigger it when detected changes in repo
push:
branches:
[ main ]
paths:
- 'src/Estiblazor.UI/Estiblazor.UI/**'
- '.github/workflows/app-syon-estiblazor-AutoDeployTrigger-587bf841-a742-473d-80af-23fd4b0e2b36.yml'
# Allow manual trigger
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
id-token: write #This is required for requesting the OIDC JWT Token
contents: read #Required when GH token is used to authenticate with private repo
steps:
- name: Checkout to the branch
uses: actions/checkout@v2
- name: Azure Login
uses: azure/login@v1
with:
client-id: ${{ secrets.APPSYONESTIBLAZOR_AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.APPSYONESTIBLAZOR_AZURE_TENANT_ID }}
subscription-id: ${{ secrets.APPSYONESTIBLAZOR_AZURE_SUBSCRIPTION_ID }}
- name: Build and push container image to registry
uses: azure/container-apps-deploy-action@v2
with:
appSourcePath: ${{ github.workspace }}/src
registryUrl: registry-1.docker.io
registryUsername: ${{ secrets.APPSYONESTIBLAZOR_REGISTRY_USERNAME }}
registryPassword: ${{ secrets.APPSYONESTIBLAZOR_REGISTRY_PASSWORD }}
containerAppName: app-syon-estiblazor
resourceGroup: rg-syon-estiblazor
imageToBuild: registry-1.docker.io/syonfoppen02/estiblazorui:latest
_buildArgumentsKey_: |
_buildArgumentsValues_