Fix staging deploy of satellite and storage-node (#277)

This commit is contained in:
Matt Robinson 2018-08-23 17:04:51 -04:00 committed by GitHub
parent 026997e725
commit 631331236e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 5 deletions

9
Jenkinsfile vendored
View File

@ -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}"
}
}

View File

@ -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