Commit cd4ae27e authored by Daniele Venzano's avatar Daniele Venzano

Put the deployment path into a variable, comment the broken frontend deployment

parent 23ffd1d8
......@@ -86,22 +86,22 @@ docs:
script:
- pip install -r requirements.txt
- sh ./build_docs.sh
- rsync -avz docs/_build/html/ ubuntu@${STAGING_IP}:/srv/httpd/docs/
- rsync -avz docs/_build/html/ ubuntu@${STAGING_IP}:${STAGING_PATH}/docs
environment:
name: staging
frontend:
stage: deploy
image: node:latest
before_script:
- which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
script:
- cd zoe_fe
- npm install
- npm install -g @angular/cli
- ng build --env=prod --output-path=build/prod
- rsync -avz build/prod/ ubuntu@${STAGING_IP}:/srv/httpd/
environment:
name: staging
#frontend:
# stage: deploy
# image: node:latest
# before_script:
# - which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
# - eval $(ssh-agent -s)
# - ssh-add <(echo "$SSH_PRIVATE_KEY")
# script:
# - cd zoe_fe
# - npm install
# - npm install -g @angular/cli
# - ng build --env=prod --output-path=build/prod
# - rsync -avz build/prod/ ubuntu@${STAGING_IP}:${STAGING_PATH}
# environment:
# name: staging
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment