Commit 5b3aeb85 authored by nimrod's avatar nimrod
Browse files

Allow setting the server for Docker deployments.

Instead of having just hidden jobs and extending it in the project, use
a variable that can be overriden in the project (not sure it will work).
parent 7755c243
Loading
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
---
.compose-build:
variables:
  server: host01.shore.co.il

compose-build:
  image: adarnimrod/ci-images:docker
  stage: build
  tags: ["$server"]
  variables:
    COMPOSE_DOCKER_CLI_BUILD: "1"
    DOCKER_BUILDKIT: "1"
@@ -9,9 +13,10 @@
    - docker-compose build --no-cache --pull
    - docker-compose pull --quiet

.compose-run:
compose-run:
  image: adarnimrod/ci-images:docker
  stage: deploy
  tags: ["$server"]
  when: manual
  script:
    - docker-compose up --detach --remove-orphans