Skip to content

add allowed_hosts

add allowed_hosts #5

name: Trigger auto deployment for squib
# When this action will be executed
on:
# Automatically trigger it when detected changes in repo
push:
branches:
[ main ]
paths:
- '**'
- '.github/workflows/squib-AutoDeployTrigger-0cf970fb-8c40-45eb-ab45-65da64debb9a.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.SQUIB_AZURE_CREDENTIALS }}
- name: Build and push container image to registry
uses: azure/container-apps-deploy-action@v1
with:
appSourcePath: ${{ github.workspace }}
registryUrl: squib.azurecr.io
registryUsername: ${{ secrets.SQUIB_REGISTRY_USERNAME }}
registryPassword: ${{ secrets.SQUIB_REGISTRY_PASSWORD }}
containerAppName: squib
resourceGroup: squib
imageToBuild: squib.azurecr.io/squibcontainer:${{ github.sha }}