diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 135eb4422f5973b3fd39661a09c1caafffedb2d2..24a487a14bca0c4707be7033ff2f4d88e67936c6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,3 +17,27 @@ build: push: extends: .compose-push tags: [ns4.shore.co.il] + +pull-ns4: + image: registry.shore.co.il/ci-images:docker + stage: deploy + tags: [ns4.shore.co.il] + needs: [push] + script: + - docker-compose pull --quiet + +pull-host01: + image: registry.shore.co.il/ci-images:docker + stage: deploy + tags: [host01.shore.co.il] + needs: [push] + script: + - docker-compose pull --quiet + +pull-kodi: + image: registry.shore.co.il/ci-images:docker + stage: deploy + tags: [kodi.shore.co.il] + needs: [push] + script: + - docker-compose pull --quiet diff --git a/deploy b/deploy index d7b555adf78a3ed4cfbe03c8bfb56659e85171b6..4c175e162f9c3c302980698726231a9dccde399d 100755 --- a/deploy +++ b/deploy @@ -11,7 +11,6 @@ _deploy() { echo "Deploying to $1" >&2 export DOCKER_HOST="ssh://$1" export RUNNER_NAME="$1" - until docker-compose pull --quiet; do true; done until docker-compose up --detach --remove-orphans ; do true; done # shellcheck disable=SC2034 for i in $(seq 12)