Skip to content
Snippets Groups Projects
Commit 13bdf371 authored by Tim Repke's avatar Tim Repke
Browse files

Update .gitlab-ci.yml file

parent a4592b77
No related branches found
No related tags found
No related merge requests found
Pipeline #1008 canceled
......@@ -70,7 +70,7 @@ deploy-to-production:
- echo "Dropping virtual environment"
- rm -rf venv
- echo "Fetching updated source"
- echo "Token: ${CI_JOB_TOKEN}"
- echo "Token ${CI_JOB_TOKEN}"
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.pik-potsdam.de/".insteadOf "ssh://git@gitlab.pik-potsdam.de/"
- git stash # "reset" softly by stashing (in case files changed)
- git pull origin production # pull from origin (production branch)
......@@ -78,6 +78,7 @@ deploy-to-production:
- python3.10 -m venv venv
- source venv/bin/activate
- echo "Installing requirements"
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.pik-potsdam.de/".insteadOf "ssh://git@gitlab.pik-potsdam.de/"
- pip install -r requirements.txt
- echo "Handling migrations"
- pip install alembic
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment