diff options
author | 2020-11-16 23:29:03 +0100 | |
---|---|---|
committer | 2020-11-16 23:29:03 +0100 | |
commit | 6750911d2f92cc5f2bbed9df0684de41f0c9828c (patch) | |
tree | 559f11999fd01a8ba0e8fb896424a19b02309989 | |
parent | Fix missing space in docker build command (diff) |
Enable BuildKit caching on images
-rw-r--r-- | .github/workflows/lint-test.yaml | 8 |
1 files 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 |