Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reflectometry
Web Reflectivity
Commits
8b914f16
Commit
8b914f16
authored
Dec 09, 2021
by
Mark Abraham
Browse files
add git clone L15
parent
64d0d7f7
Pipeline
#179431
failed with stages
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
8b914f16
...
...
@@ -12,6 +12,7 @@ build:
stage
:
build
environment
:
$CI_COMMIT_REF_SLUG
script
:
-
git clone --single-branch --branch $CI_COMMIT_REF_SLUG $REPO
-
cp ./src/certs/* .
-
echo 'COPY *.crt /etc/pki/ca-trust/source/anchors/' >> Dockerfile
-
echo 'RUN chmod 644 /etc/pki/ca-trust/source/anchors/*.crt && update-ca-trust' >> Dockerfile
...
...
@@ -30,7 +31,7 @@ deploy:
-
\cp -f ${DOT_ENV} ./.env
-
\cp -f ${LOCAL_SETTINGS} ./local_settings.py
-
\cp -f cfg/docker-compose.${CI_COMMIT_REF_SLUG} ./docker-compose.yml
-
sed -i 's/#'django_auth_ldap'/'django_auth_ldap'/g' ./src/web_reflectivity/settings.py
#
- sed -i 's/#'django_auth_ldap'/'django_auth_ldap'/g' ./src/web_reflectivity/settings.py
-
docker-compose down
-
docker volume prune -f
# Do not use this on **MAIN** without making changes to the db confuration. this command will delete the db volume.
-
docker-compose pull
...
...
Write
Preview
Markdown
is supported
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