Skip to content

Commit

Permalink
Trying to get Docker Cache to work
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadain committed Feb 24, 2024
1 parent f6bf255 commit 531eb10
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 531eb10

Please sign in to comment.