From cf7503634aa194c490acce0447775952248125d8 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Fri, 22 Jan 2021 19:54:51 +0200
Subject: [PATCH] GitLab CI and personal registry.

---
 .gitlab-ci.yml | 22 ++++++++++++++++++++++
 README.md      | 14 ++++++++------
 2 files changed, 30 insertions(+), 6 deletions(-)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..a395c54
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,22 @@
+---
+include:
+  - project: shore/ci-templates
+    file: templates/pre-commit.yml
+  - project: shore/ci-templates
+    file: templates/docker.yml
+
+stages:
+  - test
+  - build
+  - deploy
+
+variables:
+  IMAGE: cron
+
+build:
+  extends: .docker-build-shore
+  tags: [ns4.shore.co.il]
+
+push:
+  extends: .docker-push-shore
+  tags: [ns4.shore.co.il]
diff --git a/README.md b/README.md
index 939fa15..47dfe29 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
 # Cron docker
 
+[![pipeline status](https://git.shore.co.il/nimrod/cron-docker/badges/master/pipeline.svg)](https://git.shore.co.il/nimrod/cron-docker/-/commits/master)
+
 A Docker image for running a Cron daemon, actually running
 [Supersonic](https://github.com/aptible/supercronic).
 
@@ -10,7 +12,7 @@ multi-stage image build as the source of the `supersonic` binary to incorporate
 in your own image like so:
 
 ```
-FROM adarnimrod/cron as supersonic
+FROM registry.shore.co.il/cron as supersonic
 
 FROM alpine:latest
 COPY --from=supersonic /usr/local/bin/supersonic /usr/local/bin/
@@ -20,7 +22,7 @@ The other pattern is building on top of this image to run some periodic tasks
 like so:
 
 ```
-FROM adarnimrod/cron
+FROM registry.shore.co.il/cron
 RUN apk add --update --no-cache aws-cli
 COPY crontab /crontab
 COPY script /usr/local/bin/
@@ -32,7 +34,7 @@ This software is licensed under the MIT license (see `LICENSE.txt`).
 
 ## Author Information
 
-Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my [website](
-https://www.shore.co.il/). Patches are welcome via [`git send-email`](
-http://git-scm.com/book/en/v2/Git-Commands-Email). The repository is located
-at: <https://git.shore.co.il/explore/>.
+Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my
+[website](https://www.shore.co.il/). Patches are welcome via
+[`git send-email`](http://git-scm.com/book/en/v2/Git-Commands-Email). The repository
+is located at: <https://git.shore.co.il/expore/>.
-- 
GitLab