Skip to content

Commit fd97dda

Browse files
committed
fix: remove unused build arg and address warnings
1 parent 7372f97 commit fd97dda

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

kustomize.Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
# build
5-
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye as builder
5+
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye AS builder
66
ARG VERSION
7-
ARG COMMIT
87
ARG DATE
98
RUN mkdir /build
109
ADD . /build/
@@ -14,10 +13,10 @@ RUN CGO_ENABLED=0 GO111MODULE=on go build \
1413
-X sigs.k8s.io/kustomize/api/provenance.buildDate=${DATE}"
1514

1615
# only copy binary
17-
FROM alpine
16+
FROM public.ecr.aws/docker/library/alpine
1817
# install dependencies
1918
RUN apk add --no-cache git openssh
2019
COPY --from=builder /build/kustomize/kustomize /app/
2120
WORKDIR /app
22-
ENV PATH "$PATH:/app"
21+
ENV PATH="$PATH:/app"
2322
ENTRYPOINT ["/app/kustomize"]

releasing/cloudbuild_kustomize_image.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ steps:
2626
--build-arg
2727
VERSION=${_PULL_BASE_REF}
2828
--build-arg
29-
COMMIT=$(git rev-parse HEAD)
30-
--build-arg
3129
DATE=$(date -u +%FT%TZ)
3230
.
3331

0 commit comments

Comments
 (0)