1
0
Fork 0
mirror of https://github.com/Luzifer/github-publish.git synced 2024-12-29 22:31:21 +00:00

Pull dependencies outside working dir

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-07-10 12:46:51 +02:00
parent 0f44b2988a
commit 7b9800a5df
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 10 additions and 8 deletions

View file

@ -1,2 +1,2 @@
05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh
a74844ac5c37963f276e8af9cb7cb46cde38dc18a4dbdc6c3b2ca37b362e87e5 golang.sh
05a1b2e610923d782078455a64ef0a6c32b1e2f21b1f1ee3a3bac0d5d1db6ee3 golang.sh

View file

@ -13,24 +13,26 @@ function step() {
echo "===> $@..."
}
VERSION=$(git describe --tags --always || echo "dev")
PWD=$(pwd)
godir=${PWD/${GOPATH}\/src\//}
REPO=${REPO:-$(echo ${godir} | cut -d '/' -f 3)}
GHUSER=${GHUSER:-$(echo ${godir} | cut -d '/' -f 2)}
ARCHS=${ARCHS:-"linux/amd64 linux/arm darwin/amd64 windows/amd64"}
DEPLOYMENT_TAG=${DEPLOYMENT_TAG:-${VERSION}}
PACKAGES=${PACKAGES:-$(echo ${godir} | cut -d '/' -f 1-3)}
BUILD_DIR=${BUILD_DIR:-.build}
DEPLOYMENT_TAG=${DEPLOYMENT_TAG:-${VERSION}}
DRAFT=${DRAFT:-true}
FORCE_SKIP_UPLOAD=${FORCE_SKIP_UPLOAD:-false}
GHUSER=${GHUSER:-$(echo ${godir} | cut -d '/' -f 2)}
godir=${PWD/${GOPATH}\/src\//}
MOD_MODE=${MOD_MODE:-}
PACKAGES=${PACKAGES:-$(echo ${godir} | cut -d '/' -f 1-3)}
PWD=$(pwd)
REPO=${REPO:-$(echo ${godir} | cut -d '/' -f 3)}
VERSION=$(git describe --tags --always || echo "dev")
go version
step "Retrieve dependencies"
pushd ${GOPATH}
go get github.com/aktau/github-release
go get github.com/mitchellh/gox
popd
step "Test code"
go vet ${PACKAGES}