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

Personal registry.

parent 5ed66087
No related branches found
No related tags found
No related merge requests found
Pipeline #546 canceled
--- ---
include: include:
- project: shore/ci-templates
file: templates/pre-commit.yml
- project: shore/ci-templates - project: shore/ci-templates
file: templates/docker.yml file: templates/docker.yml
build-host01: stages:
extends: .compose-build - test
tags: [host01.shore.co.il] - build
- deploy
build-ns4: build:
extends: .compose-build extends: .compose-build
tags: [ns4.shore.co.il] tags: [ns4.shore.co.il]
build-kodi: push:
extends: .compose-build extends: .compose-push
tags: [kodi.shore.co.il] tags: [ns4.shore.co.il]
FROM docker:19.03 as docker FROM docker:19.03 as docker
# hadolint ignore=DL3006 # hadolint ignore=DL3006
FROM adarnimrod/cron as supersonic FROM registry.shore.co.il/cron as supersonic
COPY --from=docker /usr/local/bin/docker /usr/local/bin/ COPY --from=docker /usr/local/bin/docker /usr/local/bin/
COPY --chown=root:root crontab /crontab COPY --chown=root:root crontab /crontab
# hadolint ignore=DL3002 # hadolint ignore=DL3002
......
...@@ -11,6 +11,7 @@ _deploy() { ...@@ -11,6 +11,7 @@ _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)
......
...@@ -6,13 +6,13 @@ services: ...@@ -6,13 +6,13 @@ services:
context: runner/ context: runner/
environment: environment:
CI_SERVER_URL: "${CI_SERVER_URL:-https://git.shore.co.il}" CI_SERVER_URL: "${CI_SERVER_URL:-https://git.shore.co.il}"
DOCKER_IMAGE: docker:19.03 DOCKER_IMAGE: registry.shore.co.il/ci-images:docker
DOCKER_NETWORK_MODE: &network gitlab-runner DOCKER_NETWORK_MODE: &network gitlab-runner
REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}" REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}"
RUNNER_NAME: "${RUNNER_NAME}" RUNNER_NAME: "${RUNNER_NAME}"
REGISTER_RUN_UNTAGGED: "${RUN_UNTAGGED:-true}" REGISTER_RUN_UNTAGGED: "${RUN_UNTAGGED:-true}"
RUNNER_TAG_LIST: "${RUNNER_NAME}" RUNNER_TAG_LIST: "${RUNNER_NAME}"
image: adarnimrod/gitlab-runner image: registry.shore.co.il/gitlab-runner
restart: always restart: always
volumes: volumes:
- "${BUILDS:-builds}:/builds" - "${BUILDS:-builds}:/builds"
...@@ -21,6 +21,7 @@ services: ...@@ -21,6 +21,7 @@ services:
crond: crond:
build: build:
context: crond/ context: crond/
image: registry.shore.co.il/gitlab-runner-cron
volumes: volumes:
- /run/docker.sock:/run/docker.sock - /run/docker.sock:/run/docker.sock
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment