From d40920f63c7c1b30e3d9f3b2b8d949dfa1bf0c2c Mon Sep 17 00:00:00 2001 From: Markus Antonsen <91597216+Antonsen2@users.noreply.github.com> Date: Fri, 17 Mar 2023 15:51:04 +0100 Subject: [PATCH] Ai 771 (#31) * AI-771: add cleanup to pipeline * AI-771: change yaml to point to a predefined yaml --------- Co-authored-by: maran453 --- {{ cookiecutter.repo_name }}/.gitlab-ci.yml | 22 ++------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/{{ cookiecutter.repo_name }}/.gitlab-ci.yml b/{{ cookiecutter.repo_name }}/.gitlab-ci.yml index 5970686f2..7b4214d63 100644 --- a/{{ cookiecutter.repo_name }}/.gitlab-ci.yml +++ b/{{ cookiecutter.repo_name }}/.gitlab-ci.yml @@ -1,20 +1,2 @@ -stages: - - Build - -variables: - build_number: "${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}" - image: "registry.git.vgregion.se/${CI_PROJECT_PATH}" - -default: - tags: - - ai - before_script: - - echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY - -Build image: - stage: Build - script: - - docker build . -t $image:$build_number - - docker tag $image:$build_number $image:latest - - docker push $image:$build_number - - docker push $image:latest +include: + - remote: 'https://git.vgregion.se/aiplattform/templates/researcher-ci-pipeline/-/raw/main/researcher-gitlab-ci.yml' \ No newline at end of file