diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f92da7b142f506a53baa2e4028ac3e501c5919d9..938cce49dd3adfff4cdc00f5a1fa06cdc4bfa3b4 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 93d1bef75619b1dd42545050daeb99ca70c018f2..1746c30962be62e19b03bcf1b293b35f47ad0af8 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