ProjectAres/build.yml

51 lines
1.2 KiB
YAML

timeout: 15m
steps:
- id: clone
name: gcr.io/cloud-builders/git
args:
- clone
- --depth=1
- https://github.com/StratusNetwork/docker.git
- id: ensure
name: gcr.io/cloud-builders/gsutil
args:
- -mq
- cp
- -r
- README.md
- gs://artifacts.$PROJECT_ID.appspot.com/artifacts/$BRANCH_NAME/$REPO_NAME
wait_for: ['-']
- id: m2-download
name: gcr.io/cloud-builders/gsutil
args:
- -mq
- cp
- -r
- gs://artifacts.$PROJECT_ID.appspot.com/artifacts/$BRANCH_NAME/.m2
- .
wait_for: ['-']
- id: maven
name: gcr.io/cloud-builders/mvn
args:
- install
env:
- MAVEN_OPTS=-Dmaven.repo.local=/workspace/.m2
- id: m2-deploy
name: gcr.io/cloud-builders/gsutil
args:
- -mq
- cp
- -rn
- .m2
- gs://artifacts.$PROJECT_ID.appspot.com/artifacts/$BRANCH_NAME
- 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