| substitutions: | |
| _BASE_REGISTRY_URI: us-docker.pkg.dev/chromeos-partner-moblab/base-containers | |
| _REGISTRY_URI: gcr.io/chromeos-partner-moblab | |
| __LABEL: beta | |
| _SSH_PORT: "22" | |
| _WATCHTOWER_CMD: "--interval 3600 --monitor-only --include-restarting" | |
| _INLINE_CACHE: "BUILDKIT_INLINE_CACHE=1" | |
| __BUILD_VERSION: "invalid" | |
| _DB: "" | |
| _DB_INIT: "" | |
| _DB_SETUP: "" | |
| _DEVSERVER: "" | |
| _AUTOTEST_AFE: "" | |
| _AT_DBSETUP: "" | |
| _AT_MONITORDB: "" | |
| _AT_HOSTSCHEDULER: "" | |
| _AT_JOBABORTER: "" | |
| _MOBLAB_UI: "" | |
| _MOBLAB_RPCSERVER: "" | |
| _REMOTE_AGENT: "" | |
| _OFFLOADER: "" | |
| _REMOTE_SCHEDULER: "" | |
| _REMOTE_ACCESS: "" | |
| _ENVOYPROXY: "" | |
| _MOBMONITOR: "" | |
| _DNS: "" | |
| _LOGROTATE: "" | |
| _DUT_MANAGER: "" | |
| _DUT_MANAGER_STORAGE: "" | |
| _INVENTORY: "" | |
| steps: | |
| - id: buster-slim | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/debian:buster-slim"] | |
| waitFor: ['-'] | |
| - id: alpine-git | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/alpine/git"] | |
| waitFor: ['-'] | |
| - id: dockerfile-copy | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/docker/dockerfile-copy:v0.1.9"] | |
| waitFor: ['-'] | |
| - id: buster | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/debian:buster"] | |
| waitFor: ['-'] | |
| - id: python-3.7-slim | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/python:3.7-slim-buster"] | |
| waitFor: ['-'] | |
| - id: python-3.7 | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/python:3.7-buster"] | |
| waitFor: ['-'] | |
| - id: mariadb | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/mariadb:10.5"] | |
| waitFor: ['-'] | |
| - id: python-3.8-slim | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/python:3.8-slim-buster"] | |
| waitFor: ['-'] | |
| - id: python-3.8 | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/python:3.8-buster"] | |
| waitFor: ['-'] | |
| - id: envoyproxy | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/envoyproxy/envoy:v1.15.2"] | |
| waitFor: ['-'] | |
| - id: openssh-server | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/linuxserver/openssh-server"] | |
| waitFor: ['-'] | |
| - id: watchtower | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/v2tec/watchtower:latest"] | |
| waitFor: ['-'] | |
| - id: docker-compose | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/docker/compose:alpine-1.27.4"] | |
| waitFor: ['-'] | |
| - id: node-buster | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/node:16-buster"] | |
| waitFor: ['-'] | |
| - id: node16 | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/node:16"] | |
| waitFor: ['-'] | |
| - id: alpine-edge | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/alpine:edge"] | |
| waitFor: ['-'] | |
| - id: nginx-alpine | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/nginx:alpine"] | |
| waitFor: ['-'] | |
| - id: python-2 | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/python:2-buster"] | |
| waitFor: ['-'] | |
| - id: blacklabelops_logrotate | |
| name: "docker:20.10.6" | |
| args: ["pull", "${_BASE_REGISTRY_URI}/blacklabelops/logrotate:latest"] | |
| waitFor: ['-'] | |
| - id: protoc-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/protoc:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab-autotest-lucifer-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab-autotest-lucifer:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab-autotest-base-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab-autotest-base:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab-autotest-dbsetup-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab-autotest-dbsetup:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab-autotest-monitor_db-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab-autotest-monitor_db:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab-autotest-host-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab-autotest-host:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab-autotest-aborter-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab-autotest-aborter:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab-compose-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab-compose:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab-rpcserver-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab-rpcserver:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab-remote-scheduler-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab-remote-scheduler:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab-remote-agent-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab-remote-agent:${__BUILD_VERSION} || exit 0'] | |
| - id: remote_access-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/remote_access:${__BUILD_VERSION} || exit 0'] | |
| - id: envoy-proxy-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/envoy-proxy:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab-offloader-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab-offloader:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab-ui-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab-ui:${__BUILD_VERSION} || exit 0'] | |
| - id: devserver-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/devserver:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab-db-init-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab-db-init:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab-db-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab-db:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab-db-setup-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab-db-setup:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab-autotest-afe-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab-autotest-afe:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab-ssp-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab-ssp:${__BUILD_VERSION} || exit 0'] | |
| - id: mobmonitor-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/mobmonitor:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab-dns-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab-dns:${__BUILD_VERSION} || exit 0'] | |
| - id: moblab_common-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/moblab_common:${__BUILD_VERSION} || exit 0'] | |
| - id: logrotate-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/logrotate:${__BUILD_VERSION} || exit 0'] | |
| - id: chromite-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/chromite:${__BUILD_VERSION} || exit 0'] | |
| - id: dut-manager-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/dut-manager:${__BUILD_VERSION} || exit 0'] | |
| - id: dut-manager-storage-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/dut-manager-storage:${__BUILD_VERSION} || exit 0'] | |
| - id: infra-protos-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/infra-protos:${__BUILD_VERSION} || exit 0'] | |
| - id: inventory-cache | |
| name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: ['-c', 'docker pull ${_REGISTRY_URI}/inventory:${__BUILD_VERSION} || exit 0'] | |
| - id: protoc | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "-f", | |
| "/workspace/src/dockerfiles/utilities/Dockerfile.protoc", | |
| "-t", | |
| "${_REGISTRY_URI}/protoc:${__BUILD_VERSION}", | |
| "/workspace/src/dockerfiles/utilities/", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/protoc:${__BUILD_VERSION}", | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| waitFor: | |
| - "buster-slim" | |
| - "protoc-cache" | |
| - id: chromite | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "-f", | |
| "/workspace/src/dockerfiles/utilities/Dockerfile.chromite", | |
| "-t", | |
| "${_REGISTRY_URI}/chromite:${__BUILD_VERSION}", | |
| "/workspace/src/dockerfiles/utilities/", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/chromite:${__BUILD_VERSION}", | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| waitFor: | |
| - "alpine-git" | |
| - "chromite-cache" | |
| - id: protogen | |
| name: "${_REGISTRY_URI}/protoc:${__BUILD_VERSION}" | |
| entrypoint: "bash" | |
| args: ["/workspace/src/moblab_common/protos/protogen.sh"] | |
| waitFor: | |
| - "protoc" | |
| - id: protogen-ui | |
| name: "${_REGISTRY_URI}/protoc:${__BUILD_VERSION}" | |
| entrypoint: "bash" | |
| args: ["/workspace/src/moblab-ui/protogen_ui.sh"] | |
| waitFor: | |
| - "protoc" | |
| - id: moblab_common | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "-f", | |
| "/workspace/src/dockerfiles/moblab_common/Dockerfile", | |
| "-t", | |
| "${_REGISTRY_URI}/moblab_common:${__BUILD_VERSION}", | |
| "/workspace/", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab_common:${__BUILD_VERSION}", | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| waitFor: | |
| - "protogen" | |
| - "python-2" | |
| - "buster-slim" | |
| - "python-3.8" | |
| - "moblab_common-cache" | |
| - id: moblab_db_setup | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "-f", | |
| "/workspace/src/dockerfiles/moblab_common/Dockerfile.dbsetup", | |
| "-t", | |
| "${_REGISTRY_URI}/moblab-db-setup:${__BUILD_VERSION}", | |
| "/workspace/src/", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab-db-setup:${__BUILD_VERSION}" | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| waitFor: | |
| - "python-3.8" | |
| - "moblab-db-setup-cache" | |
| - id: autotest-lucifer | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/autotest/Dockerfile.lucifer", | |
| "-t", | |
| "${_REGISTRY_URI}/moblab-autotest-lucifer:${__BUILD_VERSION}", | |
| "/workspace/src/dockerfiles/autotest/", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab-autotest-lucifer:${__BUILD_VERSION}", | |
| ] | |
| waitFor: | |
| - "protoc" | |
| - "alpine-git" | |
| - "buster-slim" | |
| - "moblab-autotest-lucifer-cache" | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| - id: autotest-base | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/autotest/Dockerfile.base", | |
| "-t", | |
| "${_REGISTRY_URI}/moblab-autotest-base:${__BUILD_VERSION}", | |
| "/workspace/", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab-autotest-base:${__BUILD_VERSION}", | |
| ] | |
| waitFor: | |
| - "protoc" | |
| - "alpine-git" | |
| - "buster-slim" | |
| - "python-3.7-slim" | |
| - "moblab_common" | |
| - "chromite" | |
| - "moblab-autotest-base-cache" | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| - id: autotest-afe | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/autotest/Dockerfile.afe", | |
| "-t", | |
| "${_REGISTRY_URI}/moblab-autotest-afe:${__BUILD_VERSION}", | |
| "/workspace/src/dockerfiles/autotest", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab-autotest-afe:${__BUILD_VERSION}", | |
| ] | |
| waitFor: | |
| - "autotest-base" | |
| - "moblab-autotest-afe-cache" | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| - id: autotest-dbsetup | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/autotest/Dockerfile.dbsetup", | |
| "-t", | |
| "${_REGISTRY_URI}/moblab-autotest-dbsetup:${__BUILD_VERSION}", | |
| "/workspace/src/dockerfiles/autotest", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab-autotest-dbsetup:${__BUILD_VERSION}", | |
| ] | |
| waitFor: | |
| - "autotest-base" | |
| - "moblab-autotest-dbsetup-cache" | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| - id: autotest-monitor | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/autotest/Dockerfile.monitor_db", | |
| "-t", | |
| "${_REGISTRY_URI}/moblab-autotest-monitor_db:${__BUILD_VERSION}", | |
| "/workspace/src/dockerfiles/autotest", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab-autotest-monitor_db:${__BUILD_VERSION}", | |
| ] | |
| waitFor: | |
| - "autotest-base" | |
| - "autotest-lucifer" | |
| - "alpine-git" | |
| - "moblab-autotest-monitor_db-cache" | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| - id: autotest-host | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/autotest/Dockerfile.hostscheduler", | |
| "-t", | |
| "${_REGISTRY_URI}/moblab-autotest-host:${__BUILD_VERSION}", | |
| "/workspace/src/dockerfiles/autotest", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab-autotest-host:${__BUILD_VERSION}", | |
| ] | |
| waitFor: | |
| - "autotest-base" | |
| - "moblab-autotest-host-cache" | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| - id: autotest-abort | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/autotest/Dockerfile.job_aborter", | |
| "-t", | |
| "${_REGISTRY_URI}/moblab-autotest-aborter:${__BUILD_VERSION}", | |
| "/workspace/src/dockerfiles/autotest", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab-autotest-aborter:${__BUILD_VERSION}", | |
| ] | |
| waitFor: | |
| - "autotest-base" | |
| - "alpine-git" | |
| - "moblab-autotest-aborter-cache" | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| - id: db | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/db/Dockerfile", | |
| "-t", | |
| "${_REGISTRY_URI}/moblab-db:${__BUILD_VERSION}", | |
| "/workspace/src/dockerfiles/db", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab-db:${__BUILD_VERSION}", | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| waitFor: | |
| - "mariadb" | |
| - "moblab-db-cache" | |
| - id: db-init | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/db/Dockerfile.db_init", | |
| "-t", | |
| "${_REGISTRY_URI}/moblab-db-init:${__BUILD_VERSION}", | |
| "/workspace/src/dockerfiles/db", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab-db-init:${__BUILD_VERSION}", | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| waitFor: | |
| - "buster-slim" | |
| - "moblab-db-init-cache" | |
| - id: devserver | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/devserver/Dockerfile", | |
| "-t", | |
| "${_REGISTRY_URI}/devserver:${__BUILD_VERSION}", | |
| "/workspace/src/dockerfiles/devserver", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/devserver:${__BUILD_VERSION}", | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| waitFor: | |
| - "alpine-git" | |
| - "python-3.8-slim" | |
| - "chromite" | |
| - "devserver-cache" | |
| - id: ui | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/ui/Dockerfile", | |
| "-t", | |
| "${_REGISTRY_URI}/moblab-ui:${__BUILD_VERSION}", | |
| "/workspace/src/", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab-ui:${__BUILD_VERSION}", | |
| ] | |
| waitFor: | |
| - "protogen-ui" | |
| - "node16" | |
| - "nginx-alpine" | |
| - "moblab-ui-cache" | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| - id: ssp | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/ssp/Dockerfile", | |
| "-t", | |
| "${_REGISTRY_URI}/moblab-ssp:${__BUILD_VERSION}", | |
| "/workspace/src/dockerfiles/ssp", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab-ssp:${__BUILD_VERSION}", | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| waitFor: | |
| - "buster-slim" | |
| - "alpine-git" | |
| - "chromite" | |
| - "moblab-ssp-cache" | |
| - id: offloader | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/offloader/Dockerfile", | |
| "-t", | |
| "${_REGISTRY_URI}/moblab-offloader:${__BUILD_VERSION}", | |
| "/workspace/", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab-offloader:${__BUILD_VERSION}", | |
| ] | |
| waitFor: | |
| - "protoc" | |
| - "python-3.8" | |
| - "python-3.8-slim" | |
| - "moblab_common" | |
| - "moblab-offloader-cache" | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| - id: envoy | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/envoy/Dockerfile", | |
| "-t", | |
| "${_REGISTRY_URI}/envoy-proxy:${__BUILD_VERSION}", | |
| "/workspace/src/dockerfiles/envoy", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/envoy-proxy:${__BUILD_VERSION}", | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| waitFor: | |
| - "envoyproxy" | |
| - "envoy-proxy-cache" | |
| - id: remote-agent | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/remote_agent/Dockerfile", | |
| "-t", | |
| "${_REGISTRY_URI}/moblab-remote-agent:${__BUILD_VERSION}", | |
| "/workspace/", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab-remote-agent:${__BUILD_VERSION}", | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| waitFor: | |
| - "python-3.8" | |
| - "python-3.8-slim" | |
| - "moblab_common" | |
| - "moblab-remote-agent-cache" | |
| - id: remote-scheduler | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/remote-scheduler/Dockerfile", | |
| "-t", | |
| "${_REGISTRY_URI}/moblab-remote-scheduler:${__BUILD_VERSION}", | |
| "/workspace/", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab-remote-scheduler:${__BUILD_VERSION}", | |
| ] | |
| waitFor: | |
| - "python-3.8" | |
| - "python-3.8-slim" | |
| - "moblab_common" | |
| - "moblab-remote-scheduler-cache" | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| - id: infra-protos | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/utilities/Dockerfile.infra_protos", | |
| "-t", | |
| "${_REGISTRY_URI}/infra-protos:${__BUILD_VERSION}", | |
| "/workspace/src/dockerfiles/utilities/", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/infra-protos:${__BUILD_VERSION}", | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| waitFor: | |
| - "protoc" | |
| - "buster-slim" | |
| - "alpine-git" | |
| - "infra-protos-cache" | |
| - id: rpcserver | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/rpcserver/Dockerfile", | |
| "-t", | |
| "${_REGISTRY_URI}/moblab-rpcserver:${__BUILD_VERSION}", | |
| "/workspace/", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab-rpcserver:${__BUILD_VERSION}", | |
| ] | |
| waitFor: | |
| - "python-3.8" | |
| - "python-3.8-slim" | |
| - "moblab_common" | |
| - "infra-protos" | |
| - "moblab-rpcserver-cache" | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| - id: compose | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", "SSH_PORT=${_SSH_PORT}", | |
| "--build-arg", "BUILD_VERSION=${__BUILD_VERSION}", | |
| "--build-arg", "DB_VER=${_DB}", | |
| "--build-arg", "DB_INIT_VER=${_DB_INIT}", | |
| "--build-arg", "DB_SETUP_VER=${_DB_SETUP}", | |
| "--build-arg", "DEVSERVER_VER=${_DEVSERVER}", | |
| "--build-arg", "AUTOTEST_AFE_VER=${_AUTOTEST_AFE}", | |
| "--build-arg", "AT_DBSETUP_VER=${_AT_DBSETUP}", | |
| "--build-arg", "AT_MONITORDB_VER=${_AT_MONITORDB}", | |
| "--build-arg", "AT_HOSTSCHEDULER_VER=${_AT_HOSTSCHEDULER}", | |
| "--build-arg", "AT_JOBABORTER_VER=${_AT_JOBABORTER}", | |
| "--build-arg", "MOBLAB_UI_VER=${_MOBLAB_UI}", | |
| "--build-arg", "MOBLAB_RPCSERVER_VER=${_MOBLAB_RPCSERVER}", | |
| "--build-arg", "REMOTE_AGENT_VER=${_REMOTE_AGENT}", | |
| "--build-arg", "OFFLOADER_VER=${_OFFLOADER}", | |
| "--build-arg", "REMOTE_SCHEDULER_VER=${_REMOTE_SCHEDULER}", | |
| "--build-arg", "REMOTE_ACCESS_VER=${_REMOTE_ACCESS}", | |
| "--build-arg", "ENVOYPROXY_VER=${_ENVOYPROXY}", | |
| "--build-arg", "MOBMONITOR_VER=${_MOBMONITOR}", | |
| "--build-arg", "DNS_VER=${_DNS}", | |
| "--build-arg", "LOGROTATE_VER=${_LOGROTATE}", | |
| "--build-arg", "DUT_MANAGER_VER=${_DUT_MANAGER}", | |
| "--build-arg", "DUT_MANAGER_STORAGE_VER=${_DUT_MANAGER_STORAGE}", | |
| "--build-arg", "INVENTORY_VER=${_INVENTORY}", | |
| "--build-arg", "${_INLINE_CACHE}", | |
| "--label=version=${__BUILD_VERSION}", | |
| "-f", "/workspace/src/dockerfiles/compose/Dockerfile", | |
| "-t", "${_REGISTRY_URI}/moblab-compose:${__BUILD_VERSION}", | |
| "-t", "${_REGISTRY_URI}/moblab-compose:${__LABEL}", | |
| "/workspace/src/dockerfiles/compose", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab-compose:${__BUILD_VERSION}", | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| - "WATCHTOWER_CMD=${_WATCHTOWER_CMD}" | |
| waitFor: | |
| - "docker-compose" | |
| - "moblab-compose-cache" | |
| - id: mobmonitor | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/mobmonitor/Dockerfile", | |
| "-t", | |
| "${_REGISTRY_URI}/mobmonitor:${__BUILD_VERSION}", | |
| "/workspace/", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/mobmonitor:${__BUILD_VERSION}", | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| waitFor: | |
| - "node16" | |
| - "python-3.8-slim" | |
| - "moblab_common" | |
| - "mobmonitor-cache" | |
| - id: dns | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/dns/Dockerfile", | |
| "-t", | |
| "${_REGISTRY_URI}/moblab-dns:${__BUILD_VERSION}", | |
| "/workspace/src/dockerfiles/dns", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/moblab-dns:${__BUILD_VERSION}", | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| waitFor: | |
| - "alpine-edge" | |
| - "moblab-dns-cache" | |
| - id: remote_access | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/remote_access/Dockerfile", | |
| "-t", | |
| "${_REGISTRY_URI}/remote_access:${__BUILD_VERSION}", | |
| "/workspace/", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/remote_access:${__BUILD_VERSION}", | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| waitFor: | |
| - "dockerfile-copy" | |
| - "openssh-server" | |
| - "autotest-base" | |
| - "moblab_common" | |
| - "remote_access-cache" | |
| - id: logrotate | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "-f", | |
| "/workspace/src/dockerfiles/utilities/Dockerfile.logrotate", | |
| "-t", | |
| "${_REGISTRY_URI}/logrotate:${__BUILD_VERSION}", | |
| "/workspace/src/dockerfiles/utilities/", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/logrotate:${__BUILD_VERSION}", | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| waitFor: | |
| - "blacklabelops_logrotate" | |
| - "logrotate-cache" | |
| - id: dut-manager | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/dut_manager/Dockerfile", | |
| "-t", | |
| "${_REGISTRY_URI}/dut-manager:${__BUILD_VERSION}", | |
| "/workspace/src/", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/dut-manager:${__BUILD_VERSION}", | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| waitFor: | |
| - "python-3.8-slim" | |
| - "infra-protos" | |
| - "dut-manager-cache" | |
| - id: dut-manager-storage | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/dut_manager_storage/Dockerfile", | |
| "-t", | |
| "${_REGISTRY_URI}/dut-manager-storage:${__BUILD_VERSION}", | |
| "/workspace/src/", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/dut-manager-storage:${__BUILD_VERSION}", | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| waitFor: | |
| - "python-3.8-slim" | |
| - "moblab_common" | |
| - "infra-protos" | |
| - "dut-manager-storage-cache" | |
| - id: inventory | |
| name: "docker:20.10.6" | |
| args: | |
| [ | |
| "build", | |
| "--build-arg", | |
| "REGISTRY_URI=${_REGISTRY_URI}", | |
| "--build-arg", | |
| "LABEL=${__BUILD_VERSION}", | |
| "--build-arg", | |
| "${_INLINE_CACHE}", | |
| "-f", | |
| "/workspace/src/dockerfiles/inventory/Dockerfile", | |
| "-t", | |
| "${_REGISTRY_URI}/inventory:${__BUILD_VERSION}", | |
| "/workspace/src/", | |
| "--cache-from", | |
| "${_REGISTRY_URI}/inventory:${__BUILD_VERSION}", | |
| ] | |
| env: | |
| - "DOCKER_BUILDKIT=1" | |
| waitFor: | |
| - "python-3.8-slim" | |
| - "infra-protos" | |
| - "inventory-cache" | |
| images: | |
| [ | |
| "${_REGISTRY_URI}/protoc:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab-autotest-lucifer:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab-autotest-base:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab-autotest-dbsetup:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab-autotest-monitor_db:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab-autotest-host:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab-autotest-aborter:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab-compose:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab-compose:${__LABEL}", | |
| "${_REGISTRY_URI}/moblab-rpcserver:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab-remote-scheduler:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab-remote-agent:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/remote_access:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/envoy-proxy:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab-offloader:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab-ui:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/devserver:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab-db-init:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab-db:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab-db-setup:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab-autotest-afe:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab-ssp:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/mobmonitor:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab-dns:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/moblab_common:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/logrotate:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/chromite:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/dut-manager:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/dut-manager-storage:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/infra-protos:${__BUILD_VERSION}", | |
| "${_REGISTRY_URI}/inventory:${__BUILD_VERSION}", | |
| ] | |
| options: | |
| # Use higher CPU machines so the caching and build steps are faster. | |
| machineType: "N1_HIGHCPU_32" | |
| substitution_option: "ALLOW_LOOSE" | |
| timeout: 18000s |