Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rolf Erik Sesseng Aas
tdt4242-base
Commits
3c4e7b3f
Commit
3c4e7b3f
authored
Apr 23, 2021
by
Sigurd Røstad Augdal
Browse files
Update .gitlab-ci.yml
parent
fb3a90c3
Pipeline
#131477
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
3c4e7b3f
...
...
@@ -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
...
...
Sigurd Røstad Augdal
@sigurdra
mentioned in commit
3dc3c251
·
Apr 23, 2021
mentioned in commit
3dc3c251
mentioned in commit 3dc3c2511bb26fea5c82049e784e1df26e3b89b0
Toggle commit list
Sigurd Røstad Augdal
@sigurdra
mentioned in merge request
!12 (merged)
·
Apr 23, 2021
mentioned in merge request
!12 (merged)
mentioned in merge request !12
Toggle commit list
Sigurd Røstad Augdal
@sigurdra
mentioned in commit
6e3f19bb
·
Apr 23, 2021
mentioned in commit
6e3f19bb
mentioned in commit 6e3f19bb9c07c267a072000dd390a6c6dea0fbd1
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment