Pull cached versions of base and shared docker images
This commit is contained in:
parent
5f677c661c
commit
8a41fe5455
18
build.yml
18
build.yml
|
@ -5,6 +5,13 @@ steps:
|
||||||
args:
|
args:
|
||||||
- clone
|
- clone
|
||||||
- https://github.com/StratusNetwork/docker.git
|
- https://github.com/StratusNetwork/docker.git
|
||||||
|
- id: base-pre
|
||||||
|
name: gcr.io/cloud-builders/docker
|
||||||
|
args:
|
||||||
|
- pull
|
||||||
|
- gcr.io/$PROJECT_ID/minecraft:base-$BRANCH_NAME
|
||||||
|
wait_for:
|
||||||
|
- git
|
||||||
- id: base
|
- id: base
|
||||||
name: gcr.io/cloud-builders/docker
|
name: gcr.io/cloud-builders/docker
|
||||||
args:
|
args:
|
||||||
|
@ -15,7 +22,7 @@ steps:
|
||||||
- --build-arg=BRANCH_PLUGINS=$BRANCH_NAME
|
- --build-arg=BRANCH_PLUGINS=$BRANCH_NAME
|
||||||
- docker/minecraft
|
- docker/minecraft
|
||||||
wait_for:
|
wait_for:
|
||||||
- git
|
- base-pre
|
||||||
- id: base-post
|
- id: base-post
|
||||||
name: gcr.io/cloud-builders/docker
|
name: gcr.io/cloud-builders/docker
|
||||||
args:
|
args:
|
||||||
|
@ -24,6 +31,13 @@ steps:
|
||||||
- gcr.io/$PROJECT_ID/minecraft:base-$BRANCH_NAME
|
- gcr.io/$PROJECT_ID/minecraft:base-$BRANCH_NAME
|
||||||
wait_for:
|
wait_for:
|
||||||
- base
|
- base
|
||||||
|
- id: shared-pre
|
||||||
|
name: gcr.io/cloud-builders/docker
|
||||||
|
args:
|
||||||
|
- pull
|
||||||
|
- gcr.io/$PROJECT_ID/minecraft:shared-$BRANCH_NAME
|
||||||
|
wait_for:
|
||||||
|
- base
|
||||||
- id: shared
|
- id: shared
|
||||||
name: gcr.io/cloud-builders/docker
|
name: gcr.io/cloud-builders/docker
|
||||||
args:
|
args:
|
||||||
|
@ -34,7 +48,7 @@ steps:
|
||||||
- --build-arg=BRANCH_PLUGINS=$BRANCH_NAME
|
- --build-arg=BRANCH_PLUGINS=$BRANCH_NAME
|
||||||
- docker/minecraft/shared
|
- docker/minecraft/shared
|
||||||
wait_for:
|
wait_for:
|
||||||
- base
|
- shared-pre
|
||||||
- id: shared-post
|
- id: shared-post
|
||||||
name: gcr.io/cloud-builders/docker
|
name: gcr.io/cloud-builders/docker
|
||||||
args:
|
args:
|
||||||
|
|
Loading…
Reference in New Issue