Skip to content

Commit

Permalink
cache image for compose
Browse files Browse the repository at this point in the history
  • Loading branch information
b4tman committed Jun 10, 2021
1 parent c3e5a2e commit b88d15c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ on:
branches:
- "master"


env:
CACHE_IMAGE: b4tman/squid-ci-cache
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1

jobs:
test:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -60,6 +66,9 @@ jobs:
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- name: Build image for test
run: docker-compose -f docker-compose.test.yml build --build-arg BUILDKIT_INLINE_CACHE=1

- name: Test image
run: docker-compose -f docker-compose.test.yml up sut

Expand Down

0 comments on commit b88d15c

Please sign in to comment.