ci: re-add path to dockerfile
This commit is contained in:
parent
0bf28ff215
commit
ef5b288261
1 changed files with 4 additions and 3 deletions
7
.github/workflows/build-and-publish.yml
vendored
7
.github/workflows/build-and-publish.yml
vendored
|
@ -31,6 +31,7 @@ jobs:
|
||||||
- name: Build image and save as file
|
- name: Build image and save as file
|
||||||
run: |
|
run: |
|
||||||
docker build \
|
docker build \
|
||||||
|
--file docker/Dockerfile \
|
||||||
--cache-from $IMAGE_NAME:latest \
|
--cache-from $IMAGE_NAME:latest \
|
||||||
--tag $IMAGE_NAME:latest \
|
--tag $IMAGE_NAME:latest \
|
||||||
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
||||||
|
@ -121,9 +122,9 @@ jobs:
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Tag images
|
- name: Tag images
|
||||||
run: >
|
run: |
|
||||||
docker tag
|
docker tag \
|
||||||
glenux/teaching-boilerplate:latest
|
glenux/teaching-boilerplate:latest \
|
||||||
glenux/teaching-boilerplate:${{ env.BUILD_VERSION }}
|
glenux/teaching-boilerplate:${{ env.BUILD_VERSION }}
|
||||||
|
|
||||||
- name: Build image and push to Docker Hub and GitHub Container Registry
|
- name: Build image and push to Docker Hub and GitHub Container Registry
|
||||||
|
|
Loading…
Reference in a new issue