echo DVC vars

This commit is contained in:
Francisco Schulz 2023-06-07 15:09:59 +02:00
parent 11515f6f71
commit 9adc0e2ced

View File

@ -7,3 +7,28 @@ stages:
- data
- build
- deploy
dvc pull:
image: python:3.8
stage: data
script:
# install dvc
- pip install dvc
- pip install dvc-azure
# configure dvc
- echo "pulling data with remote $DVC_REMOTE_NAME, from storage $DVC_AZURE_BLOB_STORE_NAME and connection $DVC_AZURE_BLOB_STORE_CONNECTION_STRING"
- 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} --verbose"
# get data
- dvc pull
rules:
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH =~ /^release/
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_TAG == null
when: manual
artifacts:
name: ${CI_PROJECT_DIR}-dvc-files
paths:
- data/*
expire_in: 1 day