This repository was archived by the owner on May 11, 2024. It is now read-only.
File tree 2 files changed +25
-2
lines changed
2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: "Push docker image to GAR"
2
2
3
3
on :
4
4
push :
5
- branches : [main]
5
+ branches : [ main ]
6
6
tags :
7
7
- " v*"
8
8
40
40
type=ref,event=tag
41
41
type=sha
42
42
43
+ - name : Cache Go build
44
+ uses : actions/cache@v4
45
+ with :
46
+ enableCrossOsArchive : true
47
+ path : |
48
+ go-build-platforms
49
+ key : ${{ runner.os }}-go_build-platforms
50
+ restore-keys : |
51
+ ${{ runner.os }}-go_build-platforms
52
+
53
+ - name : Inject cache into docker
54
+ uses :
reproducible-containers/[email protected]
55
+ with :
56
+ cache-map : |
57
+ {
58
+ "go-build-platforms": "/root/.cache/go-build"
59
+ }
60
+ skip-extraction : ${{ steps.cache.outputs.cache-hit }}
61
+
43
62
- name : Build and push
44
63
uses : docker/build-push-action@v2
45
64
with :
65
+ context : .
66
+ cache-from : type=gha
67
+ cache-to : type=gha,mode=max
46
68
platforms : linux/amd64,linux/arm64
47
69
push : true
48
70
tags : ${{ steps.meta.outputs.tags }}
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ RUN apk update && apk add --no-cache --update gcc musl-dev linux-headers git mak
4
4
5
5
WORKDIR /taiko-client
6
6
COPY . .
7
- RUN make build
7
+ RUN --mount=type=cache,target=/root/.cache/go-build,sharing=locked \
8
+ make build
8
9
9
10
FROM alpine:latest
10
11
You can’t perform that action at this time.
0 commit comments