Skip to content
Snippets Groups Projects
Commit 3c4e7b3f authored by Sigurd Røstad Augdal's avatar Sigurd Røstad Augdal
Browse files

Update .gitlab-ci.yml

parent fb3a90c3
No related branches found
No related tags found
No related merge requests found
Pipeline #131477 failed
......@@ -18,6 +18,18 @@ build-job:
- apt-get update -qy
- pip3 install -r requirements.txt
- python manage.py migrate
# Import credential variables
- ARG DJANGO_SUPERUSER_USERNAME
- ARG DJANGO_SUPERUSER_PASSWORD
- ARG DJANGO_SUPERUSER_EMAIL
# Create superuser
- RUN DJANGO_SUPERUSER_USERNAME=${DJANGO_SUPERUSER_USERNAME} \
DJANGO_SUPERUSER_PASSWORD=${DJANGO_SUPERUSER_PASSWORD} \
DJANGO_SUPERUSER_EMAIL=${DJANGO_SUPERUSER_EMAIL} \
python manage.py createsuperuser --noinput || \
- echo "WARNING: This error is ignored as it most likely is 'That username is already taken.'"
- echo "WARNING: If you wish to alter the user credentials, then delete the user first."
- python manage.py loaddata seed.json
test-backend:
stage: test
......
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