From 6750911d2f92cc5f2bbed9df0684de41f0c9828c Mon Sep 17 00:00:00 2001 From: Sebastiaan Zeeff Date: Mon, 16 Nov 2020 23:29:03 +0100 Subject: Enable BuildKit caching on images --- .github/workflows/lint-test.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index ee1ea67..135e5e5 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -9,6 +9,8 @@ on: jobs: lint-test: runs-on: ubuntu-latest + env: + DOCKER_BUILDKIT: 1 steps: - name: Checkout code @@ -24,7 +26,8 @@ jobs: - name: Build base image run: "docker build \ -f docker/base.Dockerfile \ - -t pythondiscord/snekbox-base:latest \ + -t ghcr.io/python-discord/snekbox-base:latest \ + --build-arg BUILDKIT_INLINE_CACHE=1 \ ." - name: Show Containers @@ -33,7 +36,8 @@ jobs: - name: Build base image run: "docker build \ -f docker/venv.Dockerfile \ - -t pythondiscord/snekbox-venv:latest \ + -t ghcr.io/python-discord/snekbox-venv:latest \ + --build-arg BUILDKIT_INLINE_CACHE=1 \ ." - name: Show Containers -- cgit v1.2.3