From 3c57b3d1bf578713863e907ca8b3aec12e855b1f Mon Sep 17 00:00:00 2001 From: johnson2427 Date: Thu, 15 Aug 2024 16:21:56 -0500 Subject: [PATCH] fix: cannot cache containers with docker driver --- .github/workflows/build.yaml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a63c209c94..264357d3d4 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -37,17 +37,6 @@ jobs: type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} - - name: Set up Docker Buildkit - run: echo "DOCKER_BUILDKIT=1" >> $GITHUB_ENV - - - name: Cache Docker Layers - uses: actions/cache@v4 - with: - path: /tmp/docker-cache - key: ${{ runner.os }}-docker-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-docker- - - name: Log into GitHub Container Registry if: github.event_name != 'pull_request' uses: docker/login-action@v2 @@ -61,11 +50,8 @@ jobs: with: context: . file: ./Dockerfile.slim - push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }}-slim labels: ${{ steps.meta.outputs.labels }} - cache-from: type=local,src=/tmp/docker-cache - cache-to: type=local,dest=/tmp/docker-cache - name: Build and push uses: docker/build-push-action@v4 @@ -75,7 +61,5 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=local,src=/tmp/docker-cache - cache-to: type=local,dest=/tmp/docker-cache build-args: | SLIM_IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }}-slim