Fix issues with special characters #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |