Skip to content

Commit 885ce01

Browse files
committed
Use GHA caching for Docker builds
1 parent d299452 commit 885ce01

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,14 @@ jobs:
2323
- name: Formatting check
2424
run: cargo fmt --all -- --check
2525

26-
- name: Test and build
27-
run: docker build -t rustc-perf .
26+
- uses: docker/setup-buildx-action@v2
27+
- name: Build and push
28+
uses: docker/build-push-action@v4
29+
with:
30+
context: .
31+
tags: rustc-perf
32+
cache-from: type=gha
33+
cache-to: type=gha,mode=max
2834

2935
- name: Deploy to production
3036
uses: rust-lang/simpleinfra/github-actions/upload-docker-image@master

0 commit comments

Comments
 (0)