diff --git a/scripts/build b/scripts/build index 30aca03d..56a9d128 100755 --- a/scripts/build +++ b/scripts/build @@ -7,4 +7,5 @@ cd $(dirname $0)/.. mkdir -p bin [ "$(uname)" != "Darwin" ] && LINKFLAGS="-extldflags -static -s" -CGO_ENABLED=0 go build -ldflags "-X main.VERSION=$VERSION $LINKFLAGS" -o bin/docker-machine-driver-harvester +GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.VERSION=$VERSION $LINKFLAGS" -o bin/docker-machine-driver-harvester-amd64 +GOARCH=arm64 CGO_ENABLED=0 go build -ldflags "-X main.VERSION=$VERSION $LINKFLAGS" -o bin/docker-machine-driver-harvester-arm64 \ No newline at end of file diff --git a/scripts/package b/scripts/package index 156c86bd..606e2394 100755 --- a/scripts/package +++ b/scripts/package @@ -6,4 +6,10 @@ source $(dirname $0)/version cd $(dirname $0)/.. mkdir -p dist/artifacts -tar -zcvf dist/artifacts/docker-machine-driver-harvester${SUFFIX}.tar.gz -C bin docker-machine-driver-harvester \ No newline at end of file + +for arch in amd64 arm64 +do +cp bin/docker-machine-driver-harvester-${arch} bin/docker-machine-driver-harvester +tar -zcvf dist/artifacts/docker-machine-driver-harvester-${arch}.tar.gz -C bin docker-machine-driver-harvester +done +rm bin/docker-machine-driver-harvester \ No newline at end of file