Skip to content

Commit

Permalink
Merge pull request #2922 from regro/cache-docker
Browse files Browse the repository at this point in the history
feat: cache docker image layers too
  • Loading branch information
beckermr authored Aug 8, 2024
2 parents 9b82c0b + b7ce114 commit 485407c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ conda_forge_tick/models appropriately and document any new fields or files. Tick
Note that the model exists next to and independent of the actual production code.
-->

### Description
#### Description:

<!-- Please describe your PR here. -->

### Checklist
#### Checklist:

- [ ] Pydantic model updated or no update needed

### Cross-refs, links to issues, etc
#### Cross-refs, links to issues, etc:

<!-- Please cross-link your PR to any open issues, other PRs, etc. here. -->
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
type=raw,value=latest
- name: build and push image
uses: docker/build-push-action@5176d81f87c23d6fc96624dfdbcd9f3830bbe445 # v5
uses: docker/build-push-action@16ebe778df0e7752d2cfcbd924afdbbd89c1a755 # v6
with:
context: .
push: true
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,18 @@ jobs:
env:
MONGODB_CONNECTION_STRING: "mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000"

- name: set up docker buildx
uses: docker/setup-buildx-action@v3

- name: build docker image
run: |
docker build -t ${{ env.IMAGE_NAME }}:test .
uses: docker/build-push-action@16ebe778df0e7752d2cfcbd924afdbbd89c1a755 # v6
with:
context: .
push: false
load: true
tags: ${{ env.IMAGE_NAME }}:test
cache-from: type=gha
cache-to: type=gha,mode=max

- name: restore test durations
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
Expand Down

0 comments on commit 485407c

Please sign in to comment.