Skip to content

Commit

Permalink
Fix linting warnings:
Browse files Browse the repository at this point in the history
Pin apk packages in all Dockerfiles.

Signed-off-by: Jacob Weinstock <[email protected]>
  • Loading branch information
jacobweinstock committed Sep 20, 2024
1 parent 86d057b commit 6bea9cc
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
6 changes: 1 addition & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ linters-settings:
- name: struct-tag
arguments:
- "json,inline"
staticcheck:
go: "1.18"
unused:
go: "1.18"
output:
sort-results: true
linters:
Expand All @@ -103,7 +99,7 @@ linters:
- errname
- errorlint
- exhaustive
- exportloopref
- copyloopvar
- forcetypeassert
- gocognit
- goconst
Expand Down
2 changes: 1 addition & 1 deletion cmd/tink-agent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM alpine:3.20.3
ARG TARGETOS
ARG TARGETARCH

RUN apk add --no-cache --update --upgrade ca-certificates
RUN apk add --no-cache --update --upgrade ca-certificates=20240705-r0

COPY bin/tink-agent-${TARGETOS}-${TARGETARCH} /usr/bin/tink-agent

Expand Down
2 changes: 1 addition & 1 deletion cmd/tink-controller-v1alpha2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM alpine:3.20.3
ARG TARGETOS
ARG TARGETARCH

RUN apk add --no-cache --update --upgrade ca-certificates
RUN apk add --no-cache --update --upgrade ca-certificates=20240705-r0

COPY bin/tink-controller-v1alpha2-${TARGETOS}-${TARGETARCH} /usr/bin/tink-controller

Expand Down
2 changes: 1 addition & 1 deletion cmd/tink-controller/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM alpine:3.20.3
ARG TARGETOS
ARG TARGETARCH

RUN apk add --no-cache --update --upgrade ca-certificates
RUN apk add --no-cache --update --upgrade ca-certificates=20240705-r0

COPY bin/tink-controller-${TARGETOS}-${TARGETARCH} /usr/bin/tink-controller

Expand Down
2 changes: 1 addition & 1 deletion cmd/tink-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG TARGETARCH

EXPOSE 42113 42114

RUN apk add --no-cache --update --upgrade ca-certificates
RUN apk add --no-cache --update --upgrade ca-certificates=20240705-r0

COPY bin/tink-server-${TARGETOS}-${TARGETARCH} /usr/bin/tink-server

Expand Down
2 changes: 1 addition & 1 deletion cmd/tink-worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM alpine:3.20.3
ARG TARGETOS
ARG TARGETARCH

RUN apk add --no-cache --update --upgrade ca-certificates
RUN apk add --no-cache --update --upgrade ca-certificates=20240705-r0

COPY bin/tink-worker-${TARGETOS}-${TARGETARCH} /usr/bin/tink-worker

Expand Down
2 changes: 1 addition & 1 deletion cmd/virtual-worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM alpine:3.20.3
ARG TARGETOS
ARG TARGETARCH

RUN apk add --no-cache --update --upgrade ca-certificates
RUN apk add --no-cache --update --upgrade ca-certificates=20240705-r0

COPY bin/virtual-worker-${TARGETOS}-${TARGETARCH} /usr/bin/virtual-worker

Expand Down

0 comments on commit 6bea9cc

Please sign in to comment.