From ef5b288261622949f411e8b8cc805a62479a0bdd Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Tue, 21 Dec 2021 16:17:56 +0100 Subject: [PATCH] ci: re-add path to dockerfile --- .github/workflows/build-and-publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index c7c971b..addb28c 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -31,6 +31,7 @@ jobs: - name: Build image and save as file run: | docker build \ + --file docker/Dockerfile \ --cache-from $IMAGE_NAME:latest \ --tag $IMAGE_NAME:latest \ --build-arg BUILDKIT_INLINE_CACHE=1 \ @@ -121,9 +122,9 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Tag images - run: > - docker tag - glenux/teaching-boilerplate:latest + run: | + docker tag \ + glenux/teaching-boilerplate:latest \ glenux/teaching-boilerplate:${{ env.BUILD_VERSION }} - name: Build image and push to Docker Hub and GitHub Container Registry