Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build autopush docker image with latest mixer and import code. #4300

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion build/ci/cloudbuild.deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ steps:
git submodule foreach git pull origin master
git submodule update --init --recursive

# Bundle container with website, esp and mixer.
docker build -f build/web_compose/Dockerfile \
--tag gcr.io/datcom-ci/datacommons-website-compose:${SHORT_SHA} \
--tag gcr.io/datcom-ci/datacommons-website-compose:latest \
Expand All @@ -46,6 +45,27 @@ steps:
docker push gcr.io/datcom-ci/datacommons-website-compose:latest
waitFor: ["-"]

- id: push-web-compose-autopush
name: gcr.io/cloud-builders/docker
entrypoint: "bash"
args:
- -c
- |
set -e
# Builds an autopush image with the latest mixer and import code
# instead of what the submodules reflect.
# This is to catch any breaking changes in those repos early.
git clone https://github.com/datacommonsorg/mixer.git
git clone https://github.com/datacommonsorg/import.git

docker build -f build/web_compose/Dockerfile \
--tag gcr.io/datcom-ci/datacommons-website-compose:${SHORT_SHA}-autopush \
--tag gcr.io/datcom-ci/datacommons-website-compose:latest-autopush \
.
docker push gcr.io/datcom-ci/datacommons-website-compose:${SHORT_SHA}-autopush
docker push gcr.io/datcom-ci/datacommons-website-compose:latest-autopush
waitFor: ["-"]

- id: push-nl-server
name: gcr.io/cloud-builders/docker
entrypoint: "bash"
Expand Down
Loading