Skip to content

Build and deploy container app to Azure Web App - PROD Virtual monitor #60

Build and deploy container app to Azure Web App - PROD Virtual monitor

Build and deploy container app to Azure Web App - PROD Virtual monitor #60

# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build and deploy container app to Azure Web App - PROD Virtual monitor
on:
release:
types:
- published
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
- uses: azure/docker-login@v1
with:
login-server: https://index.docker.io/v1/
username: ${{ secrets.AzureAppService_ContainerUsername_43e4c8bef39f4f7d9da4f67dc0bafa48 }}
password: ${{ secrets.AzureAppService_ContainerPassword_60e925249e694d2896f1c2a466ddf37d }}
- run: |
docker build . -t index.docker.io/hsldevcom/digitransit-virtualmonitor:${{ github.sha }}
docker push index.docker.io/hsldevcom/digitransit-virtualmonitor:${{ github.sha }}
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: 'lwa-virtualmonitor-prod-weu'
slot-name: 'stage-virtualmonitor-prod-weu'
publish-profile: ${{ secrets.PROD_STAGING_PUBLISH_PROFILE }}
images: 'index.docker.io/hsldevcom/digitransit-virtualmonitor:${{ github.sha }}'