From e20e79980890c72945c5a8fbb358c626d7c0cca3 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 28 Dec 2023 15:35:20 +1100 Subject: [PATCH] build without cgo --- .drone.sh | 3 +++ .drone.yml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.drone.sh b/.drone.sh index b297e17..61906f8 100644 --- a/.drone.sh +++ b/.drone.sh @@ -1,5 +1,8 @@ #!/bin/sh +# disable CGO for cross-compiling +export CGO_ENABLED=0 + export now=$(TZ=Australia/Sydney date '+%Y%m%d-%H%M%S') echo $now echo "build commences" diff --git a/.drone.yml b/.drone.yml index 7538cc7..f320a53 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,7 +40,7 @@ steps: port: 22 command_timeout: 2m script: - - sudo basc -c 'mv /home/l075239/smt/test.env /home/l075239/smt/.env' + - sudo bash -c 'mv /home/l075239/smt/test.env /home/l075239/smt/.env' - sudo bash -c '/etc/init.d/cbs restart' - name: dell-deploy