File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ FROM --platform=$BUILDPLATFORM golang:1.24-bookworm AS build-stage
22
33ARG TARGETOS
44ARG TARGETARCH
5+ ARG APPVERSION
6+ ARG BUILDNUMBER
57
68WORKDIR /app
79
@@ -12,6 +14,9 @@ RUN go mod verify && go mod vendor
1214RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags "-X github.com/SneaksAndData/nexus-core/pkg/buildmeta.AppVersion=$APPVERSION -X github.com/SneaksAndData/nexus-core/pkg/buildmeta.BuildNumber=$BUILDNUMBER" -o /app -v ./...
1315
1416FROM --platform=$BUILDPLATFORM public.ecr.aws/amazonlinux/amazonlinux:2 AS aws-cli-stage
17+
18+ ARG TARGETARCH
19+
1520RUN yum update -y && yum install -y unzip curl \
1621 && cli_arch=$(test "$TARGETARCH" = "amd64" && echo "x86_64" || echo "aarch64" ) \
1722 && curl "https://awscli.amazonaws.com/awscli-exe-linux-$cli_arch.zip" -o "awscliv2.zip" \
You can’t perform that action at this time.
0 commit comments