Skip to content

Commit

Permalink
Ai 771 (#31)
Browse files Browse the repository at this point in the history
* AI-771: add cleanup to pipeline

* AI-771: change yaml to point to a predefined yaml

---------

Co-authored-by: maran453 <[email protected]>
  • Loading branch information
Antonsen2 and maran453 authored Mar 17, 2023
1 parent 1aeeef9 commit d40920f
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions {{ cookiecutter.repo_name }}/.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit d40920f

Please sign in to comment.