From fbcde6acc0f1c38fb0b8acfad1711001c8eae368 Mon Sep 17 00:00:00 2001 From: s3lph Date: Tue, 17 Jul 2018 20:30:40 +0200 Subject: [PATCH] Added CI pipeline and Docker deployment to documentation; CI: only build image for staging branches and retag the image with :latest-staging. --- .gitlab-ci.yml | 4 ++++ doc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 12d475c..72bd21c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,8 +24,12 @@ build: stage: build script: - docker build -t "registry.gitlab.com/s3lph/matemat:$(git rev-parse HEAD)" . + - docker tag "registry.gitlab.com/s3lph/matemat:$(git rev-parse HEAD)" registry.gitlab.com/s3lph/matemat:latest-staging - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_TOKEN registry.gitlab.com - docker push "registry.gitlab.com/s3lph/matemat:$(git rev-parse HEAD)" + - docker push registry.gitlab.com/s3lph/matemat:latest-staging + only: + - /^staging-.*$/ staging: stage: staging diff --git a/doc b/doc index c68df9d..92e168a 160000 --- a/doc +++ b/doc @@ -1 +1 @@ -Subproject commit c68df9d86af1d8d0ebb6b6609efeef14f7103761 +Subproject commit 92e168a288b396a7a97d200b80affdf8690bd03d