Skip to content

Commit

Permalink
Try adding caches to TEST stack
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaraphael committed Jul 16, 2023
1 parent 4fcdea1 commit b6a4e04
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,29 @@ jobs:
with:
python-version: 3.8

- name: Get pip cache dir
id: pip-cache
run: echo "::set-output name=dir::$(pip cache info | grep 'Location' | cut -d' ' -f2)"

- name: Cache pip
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Configure GCP Credentials
uses: "google-github-actions/auth@v0"
with:
Expand All @@ -127,6 +150,8 @@ jobs:
work-dir: images/
command: up
stack-name: test
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max

- uses: pulumi/actions@v3
id: pulumi
Expand Down

0 comments on commit b6a4e04

Please sign in to comment.