Skip to content
Snippets Groups Projects
Commit 02ea6563 authored by Zack Wong's avatar Zack Wong
Browse files

fix indents

parent 2ef6cad7
Branches
Tags
No related merge requests found
stages: stages:
- deploy - deploy
before_script: before_script:
script: script:
- echo "preparing environment" - echo "preparing environment"
- virtualenv env - virtualenv env
- . env/bin/activate - . env/bin/activate
- pip install -r pip-packages.txt - pip install -r pip-packages.txt
deploy_staging: deploy_staging:
stage: deploy stage: deploy
script: script:
- echo "Deploy to staging server" - echo "Deploy to staging server"
environment: environment:
name: stage name: stage
url: https://portal.ucc.asn.au/stage url: https://portal.ucc.asn.au/stage
only: only:
- master - master
deploy_prod: deploy_prod:
stage: deploy stage: deploy
script: script:
- echo "Deploy to production server" - echo "Deploy to production server"
environment: environment:
name: production name: production
url: https://portal.ucc.asn.au url: https://portal.ucc.asn.au
when: manual when: manual
only: only:
- master - master
deploy_test: deploy_test:
stage: deploy stage: deploy
script: script:
- echo "Deploy to test" - echo "Deploy to test"
- . venv/bin/activate - . venv/bin/activate
- python3 src/manage.py makemigrations - python3 src/manage.py makemigrations
- python3 src/manage.py migrate --run-syncdb - python3 src/manage.py migrate --run-syncdb
- ln -s /etc/uwsgi/vassals/test.skel /etc/uwsgi/vassals/$CI_COMMIT_REF_NAME.ini - ln -s /etc/uwsgi/vassals/test.skel /etc/uwsgi/vassals/$CI_COMMIT_REF_NAME.ini
environment: environment:
name: test/$CI_COMMIT_REF_NAME name: test/$CI_COMMIT_REF_NAME
url: https://$CI_COMMIT_REF_NAME.test.ucc.asn.au url: https://$CI_COMMIT_REF_NAME.test.ucc.asn.au
except: except:
- master - master
\ No newline at end of file
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