Skip to content

Commit 1f0d420

Browse files
authored
Merge branch 'main' into patch-1
2 parents c9e97a5 + 1fbbcca commit 1f0d420

File tree

7 files changed

+16
-9
lines changed

7 files changed

+16
-9
lines changed

.github/workflows/atlantis-base.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ jobs:
4747
- name: Build and push atlantis-base:${{env.TODAY}} image
4848
uses: docker/build-push-action@v3
4949
with:
50+
cache-from: type=gha
51+
cache-to: type=gha,mode=max
5052
context: docker-base
5153
platforms: linux/arm64/v8,linux/amd64,linux/arm/v7
52-
pull: true
5354
push: ${{ github.event_name != 'pull_request' }}
5455
tags: |
5556
ghcr.io/${{ github.repository_owner }}/atlantis-base:${{env.TODAY}}

.github/workflows/atlantis-image.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ jobs:
5050
if: ${{ contains(fromJson('["push", "pull_request"]'), github.event_name) }}
5151
uses: docker/build-push-action@v3
5252
with:
53+
cache-from: type=gha
54+
cache-to: type=gha,mode=max
5355
context: .
5456
platforms: linux/arm64/v8,linux/amd64,linux/arm/v7
55-
pull: true
5657
push: ${{ github.event_name != 'pull_request' }}
5758
tags: |
5859
ghcr.io/${{ github.repository_owner }}/atlantis:dev
@@ -70,9 +71,10 @@ jobs:
7071
startsWith(github.ref, 'refs/tags/')
7172
uses: docker/build-push-action@v3
7273
with:
74+
cache-from: type=gha
75+
cache-to: type=gha,mode=max
7376
context: .
7477
platforms: linux/arm64/v8,linux/amd64,linux/arm/v7
75-
pull: true
7678
push: ${{ github.event_name != 'pull_request' }}
7779
tags: |
7880
ghcr.io/${{ github.repository_owner }}/atlantis:${{ env.RELEASE_VERSION }}

.github/workflows/testing-env-image.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ jobs:
4343
- name: Build and push testing-env:${{env.TODAY}} image
4444
uses: docker/build-push-action@v3
4545
with:
46+
cache-from: type=gha
47+
cache-to: type=gha,mode=max
4648
context: testing
4749
platforms: linux/arm64/v8,linux/amd64,linux/arm/v7
48-
pull: true
4950
push: ${{ github.event_name != 'pull_request' }}
5051
tags: |
5152
ghcr.io/runatlantis/testing-env:${{env.TODAY}}

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ FROM golang:1.19.3-alpine AS builder
33

44
WORKDIR /app
55
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 .
79

810
# Stage 2
911
# 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
1113

1214
# Get the architecture the image is being built for
1315
ARG TARGETPLATFORM

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ require (
4444
go.etcd.io/bbolt v1.3.6
4545
go.uber.org/zap v1.23.0
4646
golang.org/x/term v0.2.0
47-
golang.org/x/text v0.4.0
47+
golang.org/x/text v0.5.0
4848
gopkg.in/go-playground/validator.v9 v9.31.0
4949
gopkg.in/yaml.v2 v2.4.0
5050
)

go.sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,8 +694,9 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
694694
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
695695
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
696696
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=
698697
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=
699700
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
700701
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
701702
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=

testing/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.19
1+
FROM golang:1.19.3
22

33
RUN apt-get update && apt-get --no-install-recommends -y install unzip \
44
&& apt-get clean \

0 commit comments

Comments
 (0)