From 531eb10b46360bfc200f29537df80163bb89e924 Mon Sep 17 00:00:00 2001 From: Terence Tuhinanshu Date: Fri, 23 Feb 2024 22:34:31 -0500 Subject: [PATCH] Trying to get Docker Cache to work according to this: https://docs.docker.com/build/ci/github-actions/cache/ --- .github/workflows/continuous_integration.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index 703c9f51..ba605fef 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -25,16 +25,21 @@ jobs: aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ${{ secrets.AWS_REGION }} - - name: Cache Docker layers - uses: actions/cache@v2 - with: - path: ~/.docker - key: ${{ runner.os }}-docker-${{ hashFiles('**/Dockerfile')}} - + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Set up environment run: ./scripts/bootstrap - - run: ./scripts/cibuild + - run: ./scripts/fetch-data + + - uses: docker/build-push-action@v5 + with: + context: src/django + push: false + tags: iow:${{ github.sha }} + cache-from: type=gha + cache-to: type=gha,mode=max - run: ./scripts/cipublish if: |