fix ordering
ci/woodpecker/push/release-version Pipeline failed Details

minimal-dockerfile
gapodo 2022-12-08 01:38:48 +01:00
parent 9d1ca7c8d7
commit 545d0040e0
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
FROM --platform=$BUILDPLATFORM golang:1.19 AS build-env
ARG BUILDPLATFORM ARG BUILDPLATFORM
FROM --platform=$BUILDPLATFORM golang:1.19 AS build-env
ARG GOPROXY ARG GOPROXY
ENV GOPROXY "${GOPROXY:-direct}" ENV GOPROXY "${GOPROXY:-direct}"
@ -47,9 +47,9 @@ RUN test -n "$CI_COMMIT_SHA" || (echo "CI_COMMIT_SHA is required but not set" >&
export ENV2INI="environment-to-ini" && \ export ENV2INI="environment-to-ini" && \
export GOFILE="contrib/$ENV2INI/$ENV2INI.go" && \ export GOFILE="contrib/$ENV2INI/$ENV2INI.go" && \
echo "compiling for linux/amd64" && \ echo "compiling for linux/amd64" && \
GOOS=linux GOARCH=amd64 go build -o "${OUT}/linux/amd64/$ENV2INI" "${GOFILE}" && \ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o "${OUT}/linux/amd64/$ENV2INI" "${GOFILE}" && \
echo "compiling for linux/arm64" && \ echo "compiling for linux/arm64" && \
GOOS=linux GOARCH=arm64 go build -o "${OUT}/linux/arm64/$ENV2INI" "${GOFILE}" && \ CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o "${OUT}/linux/arm64/$ENV2INI" "${GOFILE}" && \
cd / && \ cd / && \
echo "Copying future root addons" && \ echo "Copying future root addons" && \
cp -r "/build/docker/root/*" "${DR}/" && \ cp -r "/build/docker/root/*" "${DR}/" && \