Skip to content

Commit

Permalink
python dep caching
Browse files Browse the repository at this point in the history
  • Loading branch information
ckuhtz committed Jul 10, 2024
1 parent a31f653 commit 19b0629
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ jobs:
platform: [ linux/amd64, linux/arm64 ]

steps:
- name: checkout repo
uses: actions/checkout@v4

- name: setup docker buildx
uses: docker/setup-buildx-action@v3
# with:
# buildkitd-flags: --debug

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand All @@ -24,13 +32,19 @@ jobs:
password: ${{ secrets.GHCR_TOKEN }}
logout: false

- name: checkout repo
uses: actions/checkout@v4

- name: setup docker buildx
uses: docker/setup-buildx-action@v3
# with:
# buildkitd-flags: --debug
- name: cache python packages
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: install dependencies
run: |
python -m pip install --upgrade pip
if [ -f api/requirements.txt ]; then pip install -r api/requirements.txt; fi
if [ -f cli/requirements.txt ]; then pip install -r cli/requirements.txt; fi
# Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
Expand Down

0 comments on commit 19b0629

Please sign in to comment.