File tree Expand file tree Collapse file tree 7 files changed +16
-9
lines changed Expand file tree Collapse file tree 7 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 47
47
- name : Build and push atlantis-base:${{env.TODAY}} image
48
48
uses : docker/build-push-action@v3
49
49
with :
50
+ cache-from : type=gha
51
+ cache-to : type=gha,mode=max
50
52
context : docker-base
51
53
platforms : linux/arm64/v8,linux/amd64,linux/arm/v7
52
- pull : true
53
54
push : ${{ github.event_name != 'pull_request' }}
54
55
tags : |
55
56
ghcr.io/${{ github.repository_owner }}/atlantis-base:${{env.TODAY}}
Original file line number Diff line number Diff line change 50
50
if : ${{ contains(fromJson('["push", "pull_request"]'), github.event_name) }}
51
51
uses : docker/build-push-action@v3
52
52
with :
53
+ cache-from : type=gha
54
+ cache-to : type=gha,mode=max
53
55
context : .
54
56
platforms : linux/arm64/v8,linux/amd64,linux/arm/v7
55
- pull : true
56
57
push : ${{ github.event_name != 'pull_request' }}
57
58
tags : |
58
59
ghcr.io/${{ github.repository_owner }}/atlantis:dev
70
71
startsWith(github.ref, 'refs/tags/')
71
72
uses : docker/build-push-action@v3
72
73
with :
74
+ cache-from : type=gha
75
+ cache-to : type=gha,mode=max
73
76
context : .
74
77
platforms : linux/arm64/v8,linux/amd64,linux/arm/v7
75
- pull : true
76
78
push : ${{ github.event_name != 'pull_request' }}
77
79
tags : |
78
80
ghcr.io/${{ github.repository_owner }}/atlantis:${{ env.RELEASE_VERSION }}
Original file line number Diff line number Diff line change 43
43
- name : Build and push testing-env:${{env.TODAY}} image
44
44
uses : docker/build-push-action@v3
45
45
with :
46
+ cache-from : type=gha
47
+ cache-to : type=gha,mode=max
46
48
context : testing
47
49
platforms : linux/arm64/v8,linux/amd64,linux/arm/v7
48
- pull : true
49
50
push : ${{ github.event_name != 'pull_request' }}
50
51
tags : |
51
52
ghcr.io/runatlantis/testing-env:${{env.TODAY}}
Original file line number Diff line number Diff line change @@ -3,11 +3,13 @@ FROM golang:1.19.3-alpine AS builder
3
3
4
4
WORKDIR /app
5
5
COPY . /app
6
- RUN CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -v -o atlantis .
6
+ RUN --mount=type=cache,target=/go/pkg/mod \
7
+ --mount=type=cache,target=/root/.cache/go-build \
8
+ CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -v -o atlantis .
7
9
8
10
# Stage 2
9
11
# The runatlantis/atlantis-base is created by docker-base/Dockerfile.
10
- FROM ghcr.io/runatlantis/atlantis-base:2022.11.24 AS base
12
+ FROM ghcr.io/runatlantis/atlantis-base:2022.12.05 AS base
11
13
12
14
# Get the architecture the image is being built for
13
15
ARG TARGETPLATFORM
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ require (
44
44
go.etcd.io/bbolt v1.3.6
45
45
go.uber.org/zap v1.23.0
46
46
golang.org/x/term v0.2.0
47
- golang.org/x/text v0.4 .0
47
+ golang.org/x/text v0.5 .0
48
48
gopkg.in/go-playground/validator.v9 v9.31.0
49
49
gopkg.in/yaml.v2 v2.4.0
50
50
)
Original file line number Diff line number Diff line change @@ -694,8 +694,9 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
694
694
golang.org/x/text v0.3.4 /go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ =
695
695
golang.org/x/text v0.3.6 /go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ =
696
696
golang.org/x/text v0.3.7 /go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ =
697
- golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg =
698
697
golang.org/x/text v0.4.0 /go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8 =
698
+ golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM =
699
+ golang.org/x/text v0.5.0 /go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8 =
699
700
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c /go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ =
700
701
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 /go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ =
701
702
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 /go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ =
Original file line number Diff line number Diff line change 1
- FROM golang:1.19
1
+ FROM golang:1.19.3
2
2
3
3
RUN apt-get update && apt-get --no-install-recommends -y install unzip \
4
4
&& apt-get clean \
You can’t perform that action at this time.
0 commit comments