From 114b58cae03c12192718abdb3274204bcf2b592b Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 24 Jul 2021 00:40:42 +0300 Subject: [PATCH] Small CI fixups. --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a847a94..8f121d5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,8 +42,8 @@ variables: stage: deploy tags: *tags script: - - docker tag "$HASH" "registry.shore.co.il/$IMAGE:$TAG" - - docker push "registry.shore.co.il/$IMAGE:$TAG" + - docker tag "$HASH" "registry.shore.co.il/$IMAGE:${TAG:-latest}" + - docker push "registry.shore.co.il/$IMAGE:${TAG:-latest}" rules: *rules # cgit image: @@ -56,6 +56,7 @@ build-cgit: push-cgit: extends: .push variables: + CONTEXT: cgit IMAGE: cgit needs: - job: build-cgit @@ -116,6 +117,7 @@ build-sshd: push-sshd: extends: .push variables: + CONTEXT: sshd IMAGE: sshd needs: - job: build-sshd -- GitLab