Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
edc305e3
Commit
edc305e3
authored
Apr 12, 2018
by
Guilhem Saurel
Browse files
clean ci
parent
c8370f41
Pipeline
#566
passed with stages
in 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
edc305e3
...
...
@@ -2,9 +2,8 @@ variables:
GIT_SSL_NO_VERIFY
:
"
true"
GIT_DEPTH
:
"
3"
SECRET_KEY
:
"
pipo"
EMAIL_HOST_PASSWORD
:
"
pipo"
DB
:
"
db.sqlite3"
DEPLOY_URL
:
"
http://rainboard.laas.fr/deploy"
REGISTRY
:
"
eur0c.laas.fr:5000"
DOCKER_TAG
:
"
${REGISTRY}/${CI_PROJECT_PATH}:${CI_COMMIT_REF_NAME}"
test
:
stage
:
test
...
...
@@ -18,16 +17,7 @@ build:
stage
:
build
image
:
docker
script
:
-
docker build -t ${CI_PROJECT_NAME} .
-
docker run --rm -e SECRET_KEY -e EMAIL_HOST_PASSWORD -e DB ${CI_PROJECT_NAME} ./manage.py migrate
-
docker run --rm -e SECRET_KEY -e EMAIL_HOST_PASSWORD -e DB ${CI_PROJECT_NAME} ./manage.py test
-
docker tag ${CI_PROJECT_NAME} eur0c.laas.fr:5000/${CI_PROJECT_PATH}:${CI_COMMIT_REF_NAME}
-
docker push eur0c.laas.fr:5000/${CI_PROJECT_PATH}:${CI_COMMIT_REF_NAME}
deploy
:
stage
:
deploy
image
:
appropriate/curl
only
:
-
master
script
:
-
curl ${DEPLOY_URL}
-
docker build -t ${DOCKER_TAG} .
-
docker run --rm -e SECRET_KEY ${DOCKER_TAG} ./manage.py migrate
-
docker run --rm -e SECRET_KEY ${DOCKER_TAG} ./manage.py test
-
docker push ${DOCKER_TAG}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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