move virtualenv to /opt/make_post_sell

modified:   .gitlab-ci.yml
This commit is contained in:
Russell Ballestrini 2022-05-25 09:46:15 -04:00
parent 4142476f7e
commit 459ae6f77b

View file

@ -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