From 459ae6f77b3d11907f97356e0707dcc14b599216 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Wed, 25 May 2022 09:46:15 -0400 Subject: [PATCH] move virtualenv to /opt/make_post_sell modified: .gitlab-ci.yml --- .gitlab-ci.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7da9a14..b1e44df 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,20 +18,18 @@ build: script: - mv env.vanilla env - make prod - # copy static assets to env/static + # copy static assets to env/static & create a tarball of the static files. - cp -pr make_post_sell/static env/static - # make tarball of the static files. - cp -pr env/static static - # create a tarball of the static files. - tar -zcf static.tar.gz static # move the virtualenv with virtualenv-clone into desired location. - - virtualenv-clone env /www/my.makepostsell.com/env + - virtualenv-clone env /opt/make_post_sell/env # make tarball of virtualenv. - - tar -zcf env.tar.gz -C /www/my.makepostsell.com . + - tar -zcf env.tar.gz -C /opt/make_post_sell/env . # create commit-hash.txt to track this build's git commit hash. - echo $CI_COMMIT_SHA >> commit-hash.txt # clean up directory outside of gitlab-runner filesystem. - - rm -rf /www/my.makepostsell.com + - rm -rf /opt/make_post_sell/env artifacts: paths: - env.tar.gz