Skip to content

Commit

Permalink
chore: Use Docker Buildx to cache Docker layers
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Jun 27, 2024
1 parent 64754e6 commit d48025f
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/ci-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Test Backend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run Backend Tests
run: sudo docker-compose --env-file .env-github-actions run server bash -c "coverage run manage.py test"
- name: Generate Backend Coverage Report (Inline)
Expand Down Expand Up @@ -57,7 +57,20 @@ jobs:
name: Lint Backend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Cache Docker layers
uses: docker/bake-action@master
with:
push: false
load: true
files: |-
docker-compose.yaml
docker-compose-cache.json
- name: Lint Backend
continue-on-error: false
run: sudo docker-compose --env-file .env-github-actions run server bash -c "flake8"

0 comments on commit d48025f

Please sign in to comment.