Skip to content

Commit

Permalink
use caching for faster builds
Browse files Browse the repository at this point in the history
  • Loading branch information
samos123 committed Jun 27, 2024
1 parent 30aec7e commit 97d38ce
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ jobs:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and Test
env:
PYTEST_FILES: ${{ matrix.pytest_files }}
SKIP_PRECOMMIT: --skip-pre-commit
run: |
docker build \
--build-arg "PYTEST_FILES=$PYTEST_FILES" \
--build-arg "SKIP_PRECOMMIT=$SKIP_PRECOMMIT" \
-t mydockertarget --target=ci .
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v5
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
target: ci
build-args: |
PYTEST_FILES=${{ matrix.pytest_files }}
SKIP_PRECOMMIT=--skip-pre-commit

0 comments on commit 97d38ce

Please sign in to comment.