From 442c6cc6b7c75dc2d513e914c0bf7299e364f620 Mon Sep 17 00:00:00 2001 From: Paolo Brasolin <paolo.brasolin@eurac.edu> Date: Tue, 1 Mar 2022 17:28:43 +0100 Subject: [PATCH] ci: #be build step --- .gitlab-ci.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 06cf5af..105d340 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,13 +5,15 @@ stages: - build - deploy -.be-build-job: - variables: - IMAGE_NAME: $CI_REGISTRY_IMAGE/backend - stage: build +#==[ Backend build ]============================================================ + +be-build-job: image: docker:latest + stage: build services: - docker:dind + variables: + IMAGE_NAME: $CI_REGISTRY_IMAGE/backend before_script: - docker login -u $CI_REGISTRY_USER -p $CI_JOB_TOKEN https://$CI_REGISTRY script: @@ -24,7 +26,8 @@ stages: backend - docker image push --all-tags $IMAGE_NAME only: - - main + - main # TODO: tags + - development #==[ Backend deployment ]======================================================= -- GitLab