Skip to content

add terraform for azure deployment #2

add terraform for azure deployment

add terraform for azure deployment #2

name: Trigger auto deployment for lissi-app
# When this action will be executed
on:
# Automatically trigger it when detected changes in repo
push:
branches:
[ main ]
paths:
- '**'
- '.github/workflows/lissi-app-AutoDeployTrigger-c691823c-6f7e-46d4-b45e-c486ac62b880.yml'
# Allow manual trigger
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout to the branch
uses: actions/checkout@v2
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.LISSIAPP_AZURE_CREDENTIALS }}
- name: Build and push container image to registry
uses: azure/container-apps-deploy-action@v2
with:
appSourcePath: ${{ github.workspace }}
registryUrl: ghcr.io
registryUsername: ${{ secrets.LISSIAPP_REGISTRY_USERNAME }}
registryPassword: ${{ secrets.LISSIAPP_REGISTRY_PASSWORD }}
containerAppName: lissi-app
resourceGroup: lissi-app-resource-group
imageToBuild: ghcr.io/grossherzogin-elisabeth/eventplanner:${{ github.sha }}