Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jan 15, 2020
1 parent c58cf95 commit dcd85fb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,16 @@ base = env['DOCKER_BASE'] if 'DOCKER_BASE' in env else "camptocamp/geomapfish-co
tag = ":" + env['DOCKER_TAG'] if 'DOCKER_TAG' in env else ""

if auto or args.config:
print(
" ".join(["docker", "build", "--tag=" + base + tag, "--build-arg=PGSCHEMA=" + args.pgschema, "."])
)
subprocess.check_call(
["docker", "build", "--tag=" + base + tag, "--build-arg=PGSCHEMA=" + args.pgschema, "."]
["docker", "build", "--tag=" + base + "-config" + tag, "--build-arg=PGSCHEMA=" + args.pgschema, "."]
)
if auto or args.geoportal:
git_hash = subprocess.check_output(["git", "rev-parse", "HEAD"]).strip().decode()
subprocess.check_call(
[
"docker",
"build",
"--tag=" + base + tag,
"--tag=" + base + "-geoportal" + tag,
"--build-arg=PGSCHEMA=" + args.pgschema,
"--build-arg=GIT_HASH=" + git_hash,
"geoportal",
Expand All @@ -79,7 +76,7 @@ if auto or args.geoportal:
"docker",
"build",
"--target=builder",
"--tag=camptocamp/geomapfish-geoportal-dev" + tag,
"--tag=" + base + "-geoportal-dev" + tag,
"--build-arg=PGSCHEMA=" + args.pgschema,
"--build-arg=GIT_HASH=" + git_hash,
"geoportal",
Expand Down

0 comments on commit dcd85fb

Please sign in to comment.