Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/CI-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,26 @@ jobs:
push: ${{ github.event_name == 'push' }} # always build the container (incl. Pull Requests), but only push to the registry on code push
tags: ${{ env.REGISTRY }}/${{ env.REPO }}:${{ github.sha }}
file: ./Dockerfile
deploy-container:
if: github.event_name == 'push' # Only deploy on push events
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp-container.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT
contents: read #This is required for actions/checkout

steps:
- name: Lowercase the repo name and username as container tags must be lowercase
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}

- name: Deploy to Azure Web App
id: deploy-to-webapp-container
uses: azure/webapps-deploy@v2
with:
app-name: 'botio'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_CONTAINER_PUBLISH_PROFILE }}
images: '${{ env.REGISTRY }}/${{ env.REPO }}:${{ github.sha }}'