Skip to content

Commit 7cb5376

Browse files
authored
fix: lock go tool versions to reduce flakiness (#580)
## πŸ“ Description Due to recent go tool updates, we're getting red builds. To alleviate the issue, we're locking tool versions instead of using `latest` ones. ## βœ… Checklist - [x] I have tested this change - [ ] This change requires documentation update
1 parent 377ba70 commit 7cb5376

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

β€Žencryptor/Dockerfileβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ENV APP_NAME=${APP_NAME}
1111
RUN echo "Build of $APP_NAME started"
1212

1313
RUN apt-get update -y && apt-get install --no-install-recommends -y ca-certificates unzip curl libc-bin libc6 \
14-
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
14+
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
1515

1616
WORKDIR /app
1717
COPY pkg pkg
@@ -32,7 +32,7 @@ RUN curl -sL https://github.com/google/protobuf/releases/download/v3.3.0/protoc-
3232
WORKDIR /app
3333
RUN go install github.com/mgechev/[email protected]
3434
RUN go install gotest.tools/[email protected]
35-
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
35+
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.36.7
3636

3737
CMD [ "/bin/bash", "-c \"while sleep 1000; do :; done\"" ]
3838

@@ -48,7 +48,7 @@ LABEL org.opencontainers.image.source https://github.com/semaphoreio/semaphore
4848
# postgresql-client needs to be installed here too,
4949
# otherwise the createdb command won't work.
5050
RUN apt-get update -y && apt-get install --no-install-recommends -y ca-certificates \
51-
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
51+
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
5252

5353
# We don't need Docker health checks, since these containers
5454
# are intended to run in Kubernetes pods, which have probes.

β€Žpublic-api-gateway/Dockerfileβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ENV APP_NAME=${APP_NAME}
1111
RUN echo "Build of $APP_NAME started"
1212

1313
RUN apt-get update -y && apt-get install --no-install-recommends -y ca-certificates unzip curl libc-bin libc6 \
14-
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
14+
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
1515

1616
WORKDIR /tmp
1717
RUN curl -sL https://github.com/google/protobuf/releases/download/v3.3.0/protoc-3.3.0-linux-x86_64.zip -o protoc && \
@@ -22,8 +22,8 @@ WORKDIR /app
2222

2323
RUN go install github.com/mgechev/[email protected]
2424
RUN go install gotest.tools/[email protected]
25-
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
26-
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
25+
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.36.7
26+
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0
2727

2828
FROM base AS dev
2929

β€Žrepohub/Dockerfileβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ RUN curl -sL https://github.com/golang-migrate/migrate/releases/download/v4.18.1
6161

6262
WORKDIR /app
6363
RUN go install github.com/mgechev/[email protected]
64-
RUN go install gotest.tools/gotestsum@latest
65-
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
66-
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
64+
RUN go install gotest.tools/gotestsum@v1.12.1
65+
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0
66+
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.36.8
6767

6868
CMD [ "/bin/bash", "-c \"while sleep 1000; do :; done\"" ]
6969

0 commit comments

Comments
Β (0)