Created
March 20, 2023 15:36
-
-
Save zdravko-il/57945dae0a76882af366580845d1df72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
release-model-job: | |
stage: release | |
image: zyanakiev/snowpark-devops:latest | |
artifacts: | |
name: model | |
when: on_success | |
paths: | |
- model_$CI_COMMIT_TAG.joblib | |
rules: | |
- if: $CI_COMMIT_TAG # Only on new tag | |
script: | |
- | | |
~/bin/snowsql -s MAIN -q "get @deploy/model.joblib file://$CI_PROJECT_DIR" | |
mv model.joblib model_$CI_COMMIT_TAG.joblib | |
~/bin/snowsql -s MAIN -q "put file://$CI_PROJECT_DIR/model_$CI_COMMIT_TAG.joblib @deploy overwrite=false auto_compress=false" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment