feat: update CI and add DVC job
This commit is contained in:
parent
c2027df1c7
commit
2f20ec4ecd
@ -1,32 +1,51 @@
|
|||||||
include:
|
include:
|
||||||
- project: "Gitlab/gitlab"
|
- project: "Gitlab/gitlab"
|
||||||
ref: 0.3.0
|
file: "/ci-templates/research/versioning-build-test-release.gitlab-ci.yml"
|
||||||
file: "/ci-templates/research/dvc-versioning-build-release.gitlab-ci.yml"
|
|
||||||
# file: "/ci-templates/research/versioning-build+azure_model-test-release.gitlab-ci.yml"
|
# file: "/ci-templates/research/versioning-build+azure_model-test-release.gitlab-ci.yml"
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
NEXUS_PROJECT_DIR: red
|
NEXUS_PROJECT_DIR: red
|
||||||
IMAGENAME: "${CI_PROJECT_NAME}"
|
IMAGENAME: "${CI_PROJECT_NAME}"
|
||||||
|
|
||||||
#################################
|
stages:
|
||||||
# temp. disable integration tests, b/c they don't cover the CV analysis case yet
|
- data
|
||||||
trigger integration tests:
|
- setup
|
||||||
|
- unit-tests
|
||||||
|
- versioning
|
||||||
|
- build
|
||||||
|
- integration-tests
|
||||||
|
- release
|
||||||
|
|
||||||
|
###########
|
||||||
|
# PULL DATA
|
||||||
|
dvc-pull:
|
||||||
|
image: python:3.10
|
||||||
|
stage: data
|
||||||
|
script:
|
||||||
|
- pip install dvc
|
||||||
|
- pip install dvc-azure
|
||||||
|
- dvc remote add -d -f ${DVC_REMOTE_NAME} azure://${DVC_AZURE_BLOB_STORE_NAME}/
|
||||||
|
- dvc remote modify ${DVC_REMOTE_NAME} connection_string "${DVC_AZURE_BLOB_STORE_CONNECTION_STRING}"
|
||||||
|
- dvc pull
|
||||||
|
rules: !reference [.default-rules-config, rules]
|
||||||
|
artifacts:
|
||||||
|
name: "${CI_PROJECT_DIR}-dvc-files"
|
||||||
|
paths:
|
||||||
|
- data/*
|
||||||
|
- models/*
|
||||||
|
expire_in: 1 day
|
||||||
|
|
||||||
|
###################
|
||||||
|
# INTEGRATION TESTS
|
||||||
|
trigger-integration-tests:
|
||||||
rules:
|
rules:
|
||||||
- when: never
|
- when: never # temp. disable integration tests
|
||||||
|
|
||||||
release build:
|
#########
|
||||||
stage: release
|
# RELEASE
|
||||||
|
release:
|
||||||
|
extends: .release
|
||||||
needs:
|
needs:
|
||||||
- job: set custom version
|
- !reference [.needs-versioning, needs] # leave this line as is
|
||||||
artifacts: true
|
- job: dvc-pull
|
||||||
optional: true
|
artifacts: true
|
||||||
- job: calculate patch version
|
|
||||||
artifacts: true
|
|
||||||
optional: true
|
|
||||||
- job: calculate minor version
|
|
||||||
artifacts: true
|
|
||||||
optional: true
|
|
||||||
- job: build docker nexus
|
|
||||||
artifacts: true
|
|
||||||
#################################
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user