From 5e56d93d0a4c25ed077bed90af586202851f3d49 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 22 Jan 2021 20:16:58 +0200 Subject: [PATCH] Personal Docker registry. --- .gitlab-ci.yml | 18 ++++++++++++++++++ docker-compose.yml | 4 +--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f92da7b..938cce4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,3 +2,21 @@ include: - project: shore/ci-templates file: templates/pre-commit.yml + - project: shore/ci-templates + file: templates/docker.yml + +stages: + - test + - build + - deploy + +variables: + IMAGE: cgit + +build: + extends: .docker-build-shore + tags: [ns4.shore.co.il] + +push: + extends: .docker-push-shore + tags: [ns4.shore.co.il] diff --git a/docker-compose.yml b/docker-compose.yml index 93d1bef..1746c30 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,10 +4,8 @@ version: '3.5' services: cgit: build: - # cache_from: - # - adarnimrod/cgit context: . - # image: adarnimrod/cgit + image: registry.shore.co.il/cgit restart: always volumes: - /var/lib/git:/srv/git:ro -- GitLab