Skip to content

Commit

Permalink
Try to cache docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Dec 30, 2022
1 parent e8cde02 commit 882bb01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/run-testplans-dsl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
node-version: 17
cache: 'npm'
cache-dependency-path: ./test-plans/${{ env.TEST_PLAN_DIR }}/package-lock.json
- name: Expose GitHub Runtime # Needed for docker buildx to cache properly
uses: crazy-max/ghaction-github-runtime@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
Expand Down
2 changes: 1 addition & 1 deletion multidim-interop/dockerBuildWrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [[ -n "${CI}" ]]; then
docker buildx build \
--load \
-t $IMAGE_NAME \
--cache-to type=gha,scope=$GITHUB_REF_NAME-$IMAGE_NAME \
--cache-to type=gha,mode=max,scope=$GITHUB_REF_NAME-$IMAGE_NAME \
--cache-from type=gha,scope=$GITHUB_REF_NAME-$IMAGE_NAME "$@"
else
docker build -t $IMAGE_NAME "$@"
Expand Down

0 comments on commit 882bb01

Please sign in to comment.