diff --git a/.gitignore b/.gitignore index 30abf06..830c920 100644 --- a/.gitignore +++ b/.gitignore @@ -282,5 +282,5 @@ local.properties !.vscode/extensions.json *.code-workspace -./rc-steering +./build/ diff --git a/build-docker.sh b/build-docker.sh index 7ff89c2..6cb29b9 100755 --- a/build-docker.sh +++ b/build-docker.sh @@ -26,11 +26,12 @@ image_build(){ printf "\n\nBuild go binary %s\n\n" "${BINARY}.${binary_suffix}" - CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} GOARM=${GOARM} go build -mod vendor -a ${GOTAGS} -o "${BINARY}.${binary_suffix}" ./cmd/${BINARY}/ + mkdir -p build + CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} GOARM=${GOARM} go build -mod vendor -a ${GOTAGS} -o "build/${BINARY}.${binary_suffix}" ./cmd/${BINARY}/ buildah --os "$GOOS" --arch "$GOARCH" $VARIANT --name "$containerName" from gcr.io/distroless/static buildah config --user 1234 "$containerName" - buildah copy "$containerName" "${BINARY}.${binary_suffix}" /go/bin/$BINARY + buildah copy "$containerName" "build/${BINARY}.${binary_suffix}" /go/bin/$BINARY buildah config --entrypoint '["/go/bin/'$BINARY'"]' "${containerName}" buildah commit --rm --manifest $IMAGE_NAME "${containerName}" "${containerName}" diff --git a/rc-steering.amd64 b/rc-steering.amd64 deleted file mode 100755 index 4fa5e50..0000000 Binary files a/rc-steering.amd64 and /dev/null differ diff --git a/rc-steering.arm64 b/rc-steering.arm64 deleted file mode 100755 index f0c6f1a..0000000 Binary files a/rc-steering.arm64 and /dev/null differ diff --git a/rc-steering.armv7 b/rc-steering.armv7 deleted file mode 100755 index 199c2d5..0000000 Binary files a/rc-steering.armv7 and /dev/null differ