From c58cf95ab10e783423a7a97f90ea8b2e13f25f24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Tue, 14 Jan 2020 10:11:24 +0100 Subject: [PATCH] Use demo image name --- .circleci/config.yml | 2 +- .travis.yml | 2 +- build | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0f8071619..2a3f0cf36 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,7 +7,7 @@ jobs: docker: - image: circleci/python:3 environment: &environment - - PROJECT=geomapfish + - PROJECT=demo - OPENSHIFT_PROJECT=gs-gmf-demo - HELM_RELEASE_NAMES=prod-2-5 - DOCKER_USERNAME=dockerhubc2c diff --git a/.travis.yml b/.travis.yml index 4991595cd..ae213701e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ addons: env: global: - - PROJECT=geomapfish + - PROJECT=demo - OPENSHIFT_PROJECT=gs-gmf-demo - HELM_RELEASE_NAMES=prod-2-5 - DOCKER_USERNAME=dockerhubc2c diff --git a/build b/build index 449cf1543..c08e93748 100755 --- a/build +++ b/build @@ -52,14 +52,15 @@ for env_file in args.env_files: # Ignore lines that don't have a '=' pass +base = env['DOCKER_BASE'] if 'DOCKER_BASE' in env else "camptocamp/geomapfish-config" tag = ":" + env['DOCKER_TAG'] if 'DOCKER_TAG' in env else "" if auto or args.config: print( - " ".join(["docker", "build", "--tag=camptocamp/geomapfish-config" + tag, "--build-arg=PGSCHEMA=" + args.pgschema, "."]) + " ".join(["docker", "build", "--tag=" + base + tag, "--build-arg=PGSCHEMA=" + args.pgschema, "."]) ) subprocess.check_call( - ["docker", "build", "--tag=camptocamp/geomapfish-config" + tag, "--build-arg=PGSCHEMA=" + args.pgschema, "."] + ["docker", "build", "--tag=" + base + tag, "--build-arg=PGSCHEMA=" + args.pgschema, "."] ) if auto or args.geoportal: git_hash = subprocess.check_output(["git", "rev-parse", "HEAD"]).strip().decode() @@ -67,7 +68,7 @@ if auto or args.geoportal: [ "docker", "build", - "--tag=camptocamp/geomapfish-geoportal" + tag, + "--tag=" + base + tag, "--build-arg=PGSCHEMA=" + args.pgschema, "--build-arg=GIT_HASH=" + git_hash, "geoportal",