Skip to content
Snippets Groups Projects
Commit 5ac334d7 authored by nimrod's avatar nimrod
Browse files

Pull with CI.

parent 87dc4a2f
No related branches found
No related tags found
No related merge requests found
Pipeline #548 failed
...@@ -17,3 +17,27 @@ build: ...@@ -17,3 +17,27 @@ build:
push: push:
extends: .compose-push extends: .compose-push
tags: [ns4.shore.co.il] 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
...@@ -11,7 +11,6 @@ _deploy() { ...@@ -11,7 +11,6 @@ _deploy() {
echo "Deploying to $1" >&2 echo "Deploying to $1" >&2
export DOCKER_HOST="ssh://$1" export DOCKER_HOST="ssh://$1"
export RUNNER_NAME="$1" export RUNNER_NAME="$1"
until docker-compose pull --quiet; do true; done
until docker-compose up --detach --remove-orphans ; do true; done until docker-compose up --detach --remove-orphans ; do true; done
# shellcheck disable=SC2034 # shellcheck disable=SC2034
for i in $(seq 12) for i in $(seq 12)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment