Skip to content

Update help text

Update help text #62

Workflow file for this run

name: Build and deploy
on:
push:
branches:
- main
workflow_dispatch:
permissions:
id-token: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment:
name: 'Production'
url: 'https://megaskababot.azurewebsites.net/'
steps:
- uses: actions/checkout@v2
- name: Log in to Azure
uses: Azure/login@v1
with:
client-id: ${{ secrets.CLIENT_ID }}
tenant-id: ${{ secrets.TENANT_ID }}
allow-no-subscriptions: true
- name: Docker login to ACR
uses: azure/docker-login@v1
with:
login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push
run: |
docker build . -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/megaskaba/megaskaba
docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/megaskaba/megaskaba
- name: Deploy from ACR
uses: azure/webapps-deploy@v2
with:
app-name: 'megaskababot'
images: ${{ secrets.REGISTRY_LOGIN_SERVER }}/megaskaba/megaskaba
- name: Azure logout
run: |
az logout