Skip to content

Commit

Permalink
(core) Add caching to Docker workflows
Browse files Browse the repository at this point in the history
Summary:
Updates GitHub workflows to cache image builds. This should
speed up most builds.

Test Plan: Tested manually in fork of grist-core.

Reviewers: paulfitz

Reviewed By: paulfitz

Subscribers: paulfitz

Differential Revision: https://phab.getgrist.com/D3363
  • Loading branch information
georgegevoian committed Apr 9, 2022
1 parent 4c5de16 commit 23cfe3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64/v8
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
3 changes: 3 additions & 0 deletions .github/workflows/docker_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
context: .
load: true
tags: ${{ github.repository_owner }}/grist:latest
cache-from: type=gha
- name: Use Node.js ${{ matrix.node-version }} for testing
uses: actions/setup-node@v1
with:
Expand Down Expand Up @@ -64,6 +65,8 @@ jobs:
platforms: linux/amd64,linux/arm64/v8
push: true
tags: ${{ github.repository_owner }}/grist:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Update latest branch
uses: ad-m/github-push-action@8407731efefc0d8f72af254c74276b7a90be36e1
with:
Expand Down

0 comments on commit 23cfe3b

Please sign in to comment.