Update dependencies #49
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: Docker deploy | |
on: | |
push: | |
branches: | |
- master | |
env: | |
DOCKER_BUILDKIT: 1 | |
BUILDKIT_PROGRESS: plain # Show all build output | |
IMAGE_NAME: quadrivium.azurecr.io/tutti | |
jobs: | |
dockerbuild: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Log in to the registry | |
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} quadrivium.azurecr.io | |
- name: Build image | |
run: | | |
docker build \ | |
--cache-from $IMAGE_NAME:latest \ | |
--tag $IMAGE_NAME:latest \ | |
--build-arg BUILDKIT_INLINE_CACHE=1 \ | |
--build-arg SOURCE_COMMIT=$GITHUB_SHA \ | |
"." | |
- name: Push image to registry | |
run: docker push $IMAGE_NAME:latest |