Add requirements.txt to dist
This commit is contained in:
parent
76c87184a1
commit
19c7b7a20c
1 changed files with 5 additions and 4 deletions
|
|
@ -27,6 +27,7 @@ build:
|
||||||
- $HOME/.poetry/bin/poetry install
|
- $HOME/.poetry/bin/poetry install
|
||||||
- $HOME/.poetry/bin/poetry run build_static
|
- $HOME/.poetry/bin/poetry run build_static
|
||||||
- $HOME/.poetry/bin/poetry build
|
- $HOME/.poetry/bin/poetry build
|
||||||
|
- $HOME/.poetry/bin/poetry export --without-hashes -f requirements.txt > dist/requirements.txt
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "dist"
|
name: "dist"
|
||||||
|
|
@ -36,8 +37,7 @@ build:
|
||||||
|
|
||||||
only:
|
only:
|
||||||
- merge_requests
|
- merge_requests
|
||||||
- stable
|
- tags
|
||||||
- master
|
|
||||||
- web
|
- web
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -60,10 +60,11 @@ deploy:
|
||||||
- 'which rsync || ( apt-get update -y && apt-get install rsync -y )'
|
- 'which rsync || ( apt-get update -y && apt-get install rsync -y )'
|
||||||
|
|
||||||
# Upload the builds folder to openflexure-microscope builds
|
# Upload the builds folder to openflexure-microscope builds
|
||||||
- rsync -hrvz -e ssh dist/ ci-user@openflexure.bath.ac.uk:/var/www/build/openflexure-microscope-server/
|
- rsync -hrvz -e ssh dist/ ci-user@openflexure.bath.ac.uk:/var/www/build/openflexure-microscope-server/${CI_COMMIT_REF_NAME} --delete
|
||||||
|
|
||||||
# Run update-latest.py on the build server
|
# Run update-latest.py on the build server
|
||||||
- ssh -t ci-user@openflexure.bath.ac.uk "/var/www/build/update-latest.py"
|
- ssh -t ci-user@openflexure.bath.ac.uk "/var/www/build/update-latest.py"
|
||||||
|
|
||||||
only:
|
only:
|
||||||
- stable
|
- tags
|
||||||
|
- web
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue