2017-12-06 05:27:14 +01:00
|
|
|
timeout: 15m
|
2017-11-25 12:22:48 +01:00
|
|
|
steps:
|
2017-12-31 12:01:48 +01:00
|
|
|
- id: git
|
2017-11-25 12:22:48 +01:00
|
|
|
name: gcr.io/cloud-builders/git
|
|
|
|
args:
|
2017-12-31 12:01:48 +01:00
|
|
|
- clone
|
|
|
|
- --depth=1
|
2017-12-31 11:53:31 +01:00
|
|
|
- https://github.com/Electroid/infrastructure.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
|
2019-03-22 01:50:40 +01:00
|
|
|
name: maven:3.6.0-jdk-8-slim
|
|
|
|
entrypoint: '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
|
2017-12-31 12:01:48 +01:00
|
|
|
dir: infrastructure
|
2017-12-06 05:27:14 +01:00
|
|
|
args:
|
|
|
|
- builds
|
|
|
|
- submit
|
|
|
|
- --async
|
|
|
|
- --no-source
|
2018-05-18 05:02:13 +02:00
|
|
|
- --substitutions=_BRANCH=$BRANCH_NAME,_VERSION=$_VERSION,_BUKKIT_VERSION=$_BUKKIT_VERSION,_BUNGEE_VERSION=$_BUNGEE_VERSION
|
|
|
|
- --config=models/minecraft/build.yml
|