From 9bb71f57783c56a21822f80584c4115811264235 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Wed, 6 Jan 2021 15:57:05 +0200 Subject: [PATCH] Test then publish. But only on the master branch and if pre-commit doesn't fail. --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ebed5db..f3729e8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,11 @@ include: file: templates/pre-commit.yml build: + stage: deploy tags: ["host01.shore.co.il"] + only: + refs: + - master script: - cid="$(basename $(cat /proc/1/cpuset))" - docker pull adarnimrod/ci-images:python3 -- GitLab