Fix staging deploy of satellite and storage-node (#277)
This commit is contained in:
parent
026997e725
commit
631331236e
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -23,16 +23,15 @@ node('node') {
|
||||
echo "Current build result: ${currentBuild.result}"
|
||||
}
|
||||
|
||||
stage('Deploy') {
|
||||
if (env.BRANCH_NAME == "master") {
|
||||
/* This should only deploy to staging if the branch is master */
|
||||
if (env.BRANCH_NAME == "master") {
|
||||
sh "./scripts/deploy.staging.sh satellite storjlabs/storj-satellite:${commit_id}"
|
||||
stage('Deploy') {
|
||||
sh 'make deploy'
|
||||
for (int i = 1; i < 60; i++) {
|
||||
sh "./scripts/deploy.staging.sh storage-node-${i} storjlabs/storj-storage-node:${commit_id}"
|
||||
}
|
||||
echo "Current build result: ${currentBuild.result}"
|
||||
}
|
||||
|
||||
echo "Current build result: ${currentBuild.result}"
|
||||
}
|
||||
|
||||
}
|
||||
|
7
Makefile
7
Makefile
@ -147,3 +147,10 @@ endif
|
||||
install-deps:
|
||||
go get -u -v golang.org/x/vgo
|
||||
cd vgo install ./...
|
||||
|
||||
.PHONY: deploy
|
||||
deploy:
|
||||
./scripts/deploy.staging.sh satellite storjlabs/storj-satellite:${TAG}
|
||||
for i in $(shell seq 1 60); do \
|
||||
./scripts/deploy.staging.sh storage-node-$$i storjlabs/storage-node:${TAG}; \
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user