docker-builds/cloudbuild.yml

176 lines
5.4 KiB
YAML

timeout: "2h30m0s"
steps:
- name: 'gcr.io/cloud-builders/docker'
id: cacheLatest
entrypoint: 'bash'
args:
- '-c'
- |
( docker pull gcr.io/zcash-web/bb-worker-debian8:latest || exit 0 );
( docker pull gcr.io/zcash-web/bb-worker-debian9:latest || exit 0 );
( docker pull gcr.io/zcash-web/bb-worker-debian10:latest || exit 0 );
( docker pull gcr.io/zcash-web/bb-worker-ubuntu1604:latest || exit 0 );
( docker pull gcr.io/zcash-web/bb-worker-ubuntu1804:latest || exit 0 );
( docker pull gcr.io/zcash-web/bb-worker-ubuntu1904:latest || exit 0 );
( docker pull gcr.io/zcash-web/bb-worker-centos8:latest || exit 0 );
( docker pull gcr.io/zcash-web/bb-worker-arch:python3 || exit 0 );
# Debian 8
- name: 'gcr.io/cloud-builders/docker'
args:
- build
- -f
- bb-worker/Dockerfile.debian8-build-python3.7
- --tag=gcr.io/zcash-web/bb-worker-debian8-build-python:3.7
- bb-worker/
id: debian8-build-python
wait_for: ['cacheLatest']
- name: 'gcr.io/cloud-builders/docker'
args:
- build
- -f
- bb-worker/Dockerfile.apt-dumb-init.python3.7
- --tag=gcr.io/zcash-web/bb-worker-debian8:latest
- --tag=gcr.io/zcash-web/bb-worker-debian8:python3.7
- --build-arg=FROMBASEOS=debian8
- --build-arg=BASEOS=debian8
- bb-worker/
wait_for: ['debian8-build-python']
# Debian 9
- name: 'gcr.io/cloud-builders/docker'
args:
- build
- -f
- bb-worker/Dockerfile.apt-build-python3.7
- --tag=gcr.io/zcash-web/bb-worker-debian9-build-python:3.7
- --build-arg=BASEOS=debian:9
- bb-worker/
id: debian9-build-python
wait_for: ['cacheLatest']
- name: 'gcr.io/cloud-builders/docker'
args:
- build
- -f
- bb-worker/Dockerfile.apt.python3.7
- --tag=gcr.io/zcash-web/bb-worker-debian9:python3.7
- --tag=gcr.io/zcash-web/bb-worker-debian9:latest
- --build-arg=FROMBASEOS=debian9
- --build-arg=BASEOS=debian9
- bb-worker/
wait_for: ['debian9-build-python']
# Debian 10
- name: 'gcr.io/cloud-builders/docker'
args:
- build
- -f
- bb-worker/Dockerfile.apt-build-python3.7
- --tag=gcr.io/zcash-web/bb-worker-debian10-build-python:3.7
- --build-arg=BASEOS=debian:10
- bb-worker/
id: debian10-build-python
wait_for: ['cacheLatest']
- name: 'gcr.io/cloud-builders/docker'
args:
- build
- -f
- bb-worker/Dockerfile.apt.python3.7
- --tag=gcr.io/zcash-web/bb-worker-debian10:python3.7
- --tag=gcr.io/zcash-web/bb-worker-debian10:latest
- --build-arg=FROMBASEOS=debian10
- --build-arg=BASEOS=debian10
- bb-worker/
wait_for: ['debian10-build-python']
# Ubuntu 16.04
- name: 'gcr.io/cloud-builders/docker'
timeout: "2h"
args:
- build
- -f
- bb-worker/Dockerfile.apt-build-python3.7
- --tag=gcr.io/zcash-web/bb-worker-ubuntu1604-build-python:3.7
- --build-arg=BASEOS=ubuntu:16.04
- bb-worker/
id: ubuntu1604-build-python
wait_for: ['cacheLatest']
- name: 'gcr.io/cloud-builders/docker'
args:
- build
- -f
- bb-worker/Dockerfile.apt-dumb-init.python3.7
- --tag=gcr.io/zcash-web/bb-worker-ubuntu1604:python3.7
- --tag=gcr.io/zcash-web/bb-worker-ubuntu1604:latest
- --build-arg=FROMBASEOS=ubuntu1604
- --build-arg=BASEOS=ubuntu1604
- bb-worker/
wait_for: ['ubuntu1604-build-python']
# Ubuntu 18.04
- name: 'gcr.io/cloud-builders/docker'
args:
- build
- -f
- bb-worker/Dockerfile.apt-build-python3.7
- --tag=gcr.io/zcash-web/bb-worker-ubuntu1804-build-python:3.7
- --build-arg=BASEOS=ubuntu:18.04
- bb-worker/
id: ubuntu1804-build-python
wait_for: ['cacheLatest']
- name: 'gcr.io/cloud-builders/docker'
args:
- build
- -f
- bb-worker/Dockerfile.apt.python3.7
- --tag=gcr.io/zcash-web/bb-worker-ubuntu1804:python3.7
- --tag=gcr.io/zcash-web/bb-worker-ubuntu1804:latest
- --build-arg=FROMBASEOS=ubuntu1804
- --build-arg=BASEOS=ubuntu1804
- bb-worker/
wait_for: ['ubuntu1804-build-python']
# Ubuntu 19.04
- name: 'gcr.io/cloud-builders/docker'
args:
- build
- -f
- bb-worker/Dockerfile.apt-build-python3.7
- --tag=gcr.io/zcash-web/bb-worker-ubuntu1904-build-python:3.7
- --build-arg=BASEOS=ubuntu:19.04
- bb-worker/
id: ubuntu1904-build-python
wait_for: ['cacheLatest']
- name: 'gcr.io/cloud-builders/docker'
args:
- build
- -f
- bb-worker/Dockerfile.apt.python3.7
- --tag=gcr.io/zcash-web/bb-worker-ubuntu1904:python3.7
- --tag=gcr.io/zcash-web/bb-worker-ubuntu1904:latest
- --build-arg=FROMBASEOS=ubuntu1904
- --build-arg=BASEOS=ubuntu1904
- bb-worker/
wait_for: ['ubuntu1904-build-python']
# Centos8
- name: 'gcr.io/cloud-builders/docker'
args:
- build
- -f
- bb-worker/Dockerfile.centos8
- --tag=gcr.io/zcash-web/bb-worker-centos8:python3
- --tag=gcr.io/zcash-web/bb-worker-centos8:latest
- bb-worker/
wait_for: ['cacheLatest']
# Arch
- name: 'gcr.io/cloud-builders/docker'
args:
- build
- -f
- bb-worker/Dockerfile.arch
- --tag=gcr.io/zcash-web/bb-worker-arch:python3
- --tag=gcr.io/zcash-web/bb-worker-arch:latest
- bb-worker/
wait_for: ['cacheLatest']