Skip to content

docs: improve README and add OpenStreetMap license info (#3) #3

docs: improve README and add OpenStreetMap license info (#3)

docs: improve README and add OpenStreetMap license info (#3) #3

name: Trigger auto deployment for addressdata-app
# When this action will be executed
on:
# Automatically trigger it when detected changes in repo
push:
branches:
[ main ]
paths:
- '**'
- '.github/workflows/addressdata-app-AutoDeployTrigger-97565f4e-b488-43b4-bd79-af6dc76a766b.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@v2
with:
creds: ${{ secrets.ADDRESSDATAAPP_AZURE_CREDENTIALS }}
- name: Build and push container image to registry
uses: azure/container-apps-deploy-action@v2
with:
appSourcePath: ${{ github.workspace }}/src
_dockerfilePathKey_: _dockerfilePath_
_targetLabelKey_: _targetLabel_
registryUrl: containerplace.azurecr.io
registryUsername: ${{ secrets.ADDRESSDATAAPP_REGISTRY_USERNAME }}
registryPassword: ${{ secrets.ADDRESSDATAAPP_REGISTRY_PASSWORD }}
containerAppName: addressdata-app
resourceGroup: addressdata-rg
imageToBuild: containerplace.azurecr.io/addressdata-app:${{ github.sha }}