Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
chore(docker): Use --cache-from by default
Browse files Browse the repository at this point in the history
Also change default image to be the final image name

Change-Id: Iad02615369764934460406d978879bff863195f9
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
  • Loading branch information
benoitf committed Apr 27, 2020
1 parent 566157a commit 5f5fd52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ jobs:
- name: build
run: |
docker image prune -a -f
docker pull quay.io/eclipse/che-theia-dev:next
docker tag quay.io/eclipse/che-theia-dev:next eclipse/che-theia-dev:next
./build.sh --root-yarn-opts:--ignore-scripts --build-args:THEIA_VERSION=master --tag:next --branch:master --git-ref:refs\\/heads\\/master --dockerfile:Dockerfile.${{matrix.dist}}
2 changes: 1 addition & 1 deletion dockerfiles/build.include
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ build_image() {
done

if ! dry_run; then
cd "${DIR}" && docker build -f ${DIR}/.Dockerfile -t ${IMAGE_NAME} ${BUILD_ARGS} ${DOCKER_BUILD_TARGET} .
cd "${DIR}" && docker build --cache-from ${IMAGE_NAME} -f ${DIR}/.Dockerfile -t ${IMAGE_NAME} ${BUILD_ARGS} ${DOCKER_BUILD_TARGET} .
rm ${DIR}/.Dockerfile
fi

Expand Down

0 comments on commit 5f5fd52

Please sign in to comment.