2017-12-06 05:27:14 +01:00
|
|
|
timeout: 15m
|
2017-11-25 12:22:48 +01:00
|
|
|
steps:
|
2017-12-06 04:22:50 +01:00
|
|
|
- id: clone
|
2017-11-25 12:22:48 +01:00
|
|
|
name: gcr.io/cloud-builders/git
|
|
|
|
args:
|
|
|
|
- clone
|
2017-12-06 04:22:50 +01:00
|
|
|
- --depth=1
|
2017-11-25 12:22:48 +01:00
|
|
|
- https://github.com/StratusNetwork/docker.git
|
2017-12-06 04:22:50 +01:00
|
|
|
- id: m2-download
|
|
|
|
name: gcr.io/cloud-builders/gsutil
|
2017-11-25 12:22:48 +01:00
|
|
|
args:
|
2017-12-06 04:22:50 +01:00
|
|
|
- -mq
|
|
|
|
- cp
|
|
|
|
- -r
|
|
|
|
- gs://artifacts.$PROJECT_ID.appspot.com/artifacts/$BRANCH_NAME/.m2
|
|
|
|
- .
|
|
|
|
- id: maven
|
|
|
|
name: gcr.io/cloud-builders/mvn
|
2017-11-25 12:22:48 +01:00
|
|
|
args:
|
2017-12-06 04:22:50 +01:00
|
|
|
- install
|
|
|
|
env:
|
|
|
|
- MAVEN_OPTS=-Dmaven.repo.local=/workspace/.m2
|
|
|
|
- id: m2-deploy
|
|
|
|
name: gcr.io/cloud-builders/gsutil
|
2017-11-26 05:41:26 +01:00
|
|
|
args:
|
2017-12-06 04:22:50 +01:00
|
|
|
- -mq
|
|
|
|
- cp
|
2017-12-30 04:42:05 +01:00
|
|
|
- -r
|
2017-12-06 04:22:50 +01:00
|
|
|
- .m2
|
|
|
|
- gs://artifacts.$PROJECT_ID.appspot.com/artifacts/$BRANCH_NAME
|
2017-12-06 05:27:14 +01:00
|
|
|
- id: docker-deploy
|
|
|
|
name: gcr.io/cloud-builders/gcloud
|
|
|
|
args:
|
|
|
|
- container
|
|
|
|
- builds
|
|
|
|
- submit
|
|
|
|
- --async
|
|
|
|
- --no-source
|
|
|
|
- --substitutions=_BRANCH=$BRANCH_NAME,_VERSION=$_VERSION,_SPORTBUKKIT_VERSION=$_SPORTBUKKIT_VERSION,_BUNGEECORD_VERSION=$_BUNGEECORD_VERSION
|
|
|
|
- --config=docker/build.yml
|