From 4c07882357ccb97bbd0f36dde7039837775f290f Mon Sep 17 00:00:00 2001 From: Carla Barquest Date: Mon, 26 Mar 2018 16:02:36 -0700 Subject: [PATCH] update to include staging deploy --- .gitlab-ci.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 133333e..8509a0a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,21 +30,21 @@ devel: only: - master -# staging: -# stage: deploy -# script: -# - rm -Rf $PROJECT_DEPLOY_DIR/[^VENV]* -# - cp -R * $PROJECT_DEPLOY_DIR -# - python3 -m venv $VENV_DEPLOY_DIR -# - source $VENV_DEPLOY_DIR/bin/activate -# - pip install -r $PROJECT_DEPLOY_DIR/requirements.txt -# - pip install -r $DEPLOY_DIR/$CI_ENVIRONMENT_NAME/acc/requirements.txt -# - ln -snf /etc/uwsgi.d/templates/other.ini /etc/uwsgi.d/$CI_ENVIRONMENT_NAME/jayastrip.ini -# environment: -# name: staging -# url: https://staging.hla.triumf.ca/jayastrip -# only: -# - staging +staging: + stage: deploy + script: + - rm -Rf $PROJECT_DEPLOY_DIR/[^VENV]* + - cp -R * $PROJECT_DEPLOY_DIR + - python3 -m venv $VENV_DEPLOY_DIR + - source $VENV_DEPLOY_DIR/bin/activate + - pip install -r $PROJECT_DEPLOY_DIR/requirements.txt + - pip install -r $DEPLOY_DIR/$CI_ENVIRONMENT_NAME/acc/requirements.txt + - ln -snf /etc/uwsgi.d/templates/other.ini /etc/uwsgi.d/$CI_ENVIRONMENT_NAME/jayastrip.ini + environment: + name: staging + url: https://staging.hla.triumf.ca/jayastrip + only: + - staging beta: stage: deploy -- 2.26.2