Skip to content

Merge pull request #65 from mmanela/master #184

Merge pull request #65 from mmanela/master

Merge pull request #65 from mmanela/master #184

Workflow file for this run

name: Docker Image CI
on:
push:
branches:
- release
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Github Action'
uses: actions/checkout@v1
- name: 'Login via Azure CLI'
uses: Azure/[email protected]
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- uses: azure/docker-login@v1
with:
login-server: idiomatically893a.azurecr.io
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and publish the Docker image
run: |
docker build . --file Dockerfile -t idiomatically:${{ github.sha }} -t idiomatically893a.azurecr.io/idiomatically:production
docker push idiomatically893a.azurecr.io/idiomatically:production
- uses: Azure/webapps-deploy@v2
with:
app-name: 'Idiomatically'
images: 'idiomatically893a.azurecr.io/idiomatically:production'
- name: Azure logout
run: |
az logout