fix: remove unused build arg and address warnings

This commit is contained in:
Liviu Costea
2025-04-07 13:18:38 +03:00
parent 7372f97c19
commit fd97ddaca1
2 changed files with 3 additions and 6 deletions

View File

@@ -2,9 +2,8 @@
# SPDX-License-Identifier: Apache-2.0
# build
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye as builder
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye AS builder
ARG VERSION
ARG COMMIT
ARG DATE
RUN mkdir /build
ADD . /build/
@@ -14,10 +13,10 @@ RUN CGO_ENABLED=0 GO111MODULE=on go build \
-X sigs.k8s.io/kustomize/api/provenance.buildDate=${DATE}"
# only copy binary
FROM alpine
FROM public.ecr.aws/docker/library/alpine
# install dependencies
RUN apk add --no-cache git openssh
COPY --from=builder /build/kustomize/kustomize /app/
WORKDIR /app
ENV PATH "$PATH:/app"
ENV PATH="$PATH:/app"
ENTRYPOINT ["/app/kustomize"]

View File

@@ -26,8 +26,6 @@ steps:
--build-arg
VERSION=${_PULL_BASE_REF}
--build-arg
COMMIT=$(git rev-parse HEAD)
--build-arg
DATE=$(date -u +%FT%TZ)
.