From 3cc933981c348c2f69debf7cd49601493b902136 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 20 Sep 2020 23:06:22 +0200 Subject: [PATCH] build binaries --- .drone.jsonnet | 4 ++-- .drone.yml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index c8383e0..e25cf99 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -91,7 +91,7 @@ local PipelineBuildBinaries = { '[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}', 'mkdir -p release/', "cd cmd/drone-github-comment && xgo -ldflags \"-s -w -X main.Version=$BUILD_VERSION\" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' .", - 'tree', + 'ls -la', 'mv /build/* /drone/src/release/', ], }, @@ -183,7 +183,7 @@ local PipelineBuildContainer(arch='amd64') = { settings: { auto_tag: true, auto_tag_suffix: arch, - dockerfile: 'docker/Dockerfile', + dockerfile: 'docker/Dockerfile.' + arch, registry: 'quay.io', repo: 'quay.io/thegeeklab/${DRONE_REPO_NAME}', username: { from_secret: 'quay_username' }, diff --git a/.drone.yml b/.drone.yml index 20bedb1..3a43e7d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -69,7 +69,7 @@ steps: - "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}" - mkdir -p release/ - cd cmd/drone-github-comment && xgo -ldflags "-s -w -X main.Version=$BUILD_VERSION" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' . - - tree + - ls -la - mv /build/* /drone/src/release/ - name: executable @@ -155,7 +155,7 @@ steps: settings: auto_tag: true auto_tag_suffix: amd64 - dockerfile: docker/Dockerfile + dockerfile: docker/Dockerfile.amd64 password: from_secret: quay_password registry: quay.io @@ -235,7 +235,7 @@ steps: settings: auto_tag: true auto_tag_suffix: arm64 - dockerfile: docker/Dockerfile + dockerfile: docker/Dockerfile.arm64 password: from_secret: quay_password registry: quay.io @@ -315,7 +315,7 @@ steps: settings: auto_tag: true auto_tag_suffix: arm - dockerfile: docker/Dockerfile + dockerfile: docker/Dockerfile.arm password: from_secret: quay_password registry: quay.io @@ -435,6 +435,6 @@ depends_on: --- kind: signature -hmac: 647ad7d045ea85060bb354182833731c0c0485344c02805fd282faaa081001d5 +hmac: 847a87a07a8ac845a12e2ad3c7ec3b6907c54e63b6dc3faf6313b4cc5ca422f2 ...