mirror of
https://github.com/Luzifer/github-publish.git
synced 2024-12-30 06:41:21 +00:00
Pull dependencies outside working dir
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
0f44b2988a
commit
7b9800a5df
2 changed files with 10 additions and 8 deletions
|
@ -1,2 +1,2 @@
|
||||||
05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh
|
05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh
|
||||||
a74844ac5c37963f276e8af9cb7cb46cde38dc18a4dbdc6c3b2ca37b362e87e5 golang.sh
|
05a1b2e610923d782078455a64ef0a6c32b1e2f21b1f1ee3a3bac0d5d1db6ee3 golang.sh
|
||||||
|
|
16
golang.sh
16
golang.sh
|
@ -13,24 +13,26 @@ function step() {
|
||||||
echo "===> $@..."
|
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"}
|
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}
|
BUILD_DIR=${BUILD_DIR:-.build}
|
||||||
|
DEPLOYMENT_TAG=${DEPLOYMENT_TAG:-${VERSION}}
|
||||||
DRAFT=${DRAFT:-true}
|
DRAFT=${DRAFT:-true}
|
||||||
FORCE_SKIP_UPLOAD=${FORCE_SKIP_UPLOAD:-false}
|
FORCE_SKIP_UPLOAD=${FORCE_SKIP_UPLOAD:-false}
|
||||||
|
GHUSER=${GHUSER:-$(echo ${godir} | cut -d '/' -f 2)}
|
||||||
|
godir=${PWD/${GOPATH}\/src\//}
|
||||||
MOD_MODE=${MOD_MODE:-}
|
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
|
go version
|
||||||
|
|
||||||
step "Retrieve dependencies"
|
step "Retrieve dependencies"
|
||||||
|
pushd ${GOPATH}
|
||||||
go get github.com/aktau/github-release
|
go get github.com/aktau/github-release
|
||||||
go get github.com/mitchellh/gox
|
go get github.com/mitchellh/gox
|
||||||
|
popd
|
||||||
|
|
||||||
step "Test code"
|
step "Test code"
|
||||||
go vet ${PACKAGES}
|
go vet ${PACKAGES}
|
||||||
|
|
Loading…
Reference in a new issue