From 22b8856206ecfd500e5959a664c5147430d11aa7 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 15 Feb 2021 20:43:39 +0100 Subject: [PATCH] chore: build arm-7 binaries --- .drone.jsonnet | 3 ++- .drone.yml | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 4a02c9c..2696629 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -87,8 +87,9 @@ local PipelineBuildBinaries = { commands: [ '[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}', 'mkdir -p release/', - "cd cmd/drone-docker && xgo -ldflags \"-s -w -X main.version=$BUILD_VERSION\" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' -out drone-docker .", + "cd cmd/drone-docker && xgo -ldflags \"-s -w -X main.version=$BUILD_VERSION\" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm-7,linux/arm64' -out drone-docker .", 'mv /build/* /drone/src/release/', + 'ls -l /drone/src/release/', ], }, { diff --git a/.drone.yml b/.drone.yml index 39c358e..ffbc9b9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -66,8 +66,9 @@ steps: commands: - "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}" - mkdir -p release/ - - cd cmd/drone-docker && xgo -ldflags "-s -w -X main.version=$BUILD_VERSION" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' -out drone-docker . + - cd cmd/drone-docker && xgo -ldflags "-s -w -X main.version=$BUILD_VERSION" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm-7,linux/arm64' -out drone-docker . - mv /build/* /drone/src/release/ + - ls -l /drone/src/release/ - name: executable image: alpine @@ -468,6 +469,6 @@ depends_on: --- kind: signature -hmac: 1f404e18b6240f430bcac2ed960b876d4fe9cccaa896ad2c009db385ed9dbeb1 +hmac: a4e6dd2ab6bcc3383abf1b8cce73ca58834ecb0709a01db887f8cd09ad16050e ...