Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a3b28f2c authored by hhakim's avatar hhakim
Browse files

Remove conda env after successful upload.

Purpose: avoid disk space consumption on VMs.
parent 957a6b81
Branches
Tags
No related merge requests found
...@@ -150,7 +150,7 @@ PKG=$(find_pkg) ...@@ -150,7 +150,7 @@ PKG=$(find_pkg)
#echo pyfaust | conda run -n $CONDA_ENV anaconda login #echo pyfaust | conda run -n $CONDA_ENV anaconda login
[[ -z "$PKG" || ! -r "$PKG" ]] && echo "Error: no built package was found in the virtual env directory." && exit 8 [[ -z "$PKG" || ! -r "$PKG" ]] && echo "Error: no built package was found in the virtual env directory." && exit 8
[[ ! -r $TOKEN_FILE ]] && echo "Error: the anaconda token file $TOKEN wasn't found." && exit 9 [[ ! -r $TOKEN_FILE ]] && echo "Error: the anaconda token file $TOKEN wasn't found." && exit 9
conda run -n $CONDA_ENV anaconda -t $TOKEN_FILE upload -u pyfaust $PKG conda run -n $CONDA_ENV anaconda -t $TOKEN_FILE upload -u pyfaust $PKG && conda env remove -n $CONDA_ENV
# removing the package: conda run -n $CONDA_ENV anaconda -t ~/conda_pyfaust_token remove # removing the package: conda run -n $CONDA_ENV anaconda -t ~/conda_pyfaust_token remove
# clean the cache and unused package after uploading # clean the cache and unused package after uploading
conda clean -a -y conda clean -a -y
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment