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
xstra-dev
tp-gitlab-ci
Commits
b01424d1
Commit
b01424d1
authored
Nov 20, 2017
by
Matthieu Boileau
Browse files
Merge branch 'dev-dockerhub' into 'master'
Dev dockerhub See merge request m.boileau/tp-gitlab-ci!1
parents
39543c8f
de6798ab
Pipeline
#8412
passed with stages
in 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
b01424d1
stages
:
-
build
-
test
-
release
variables
:
CONTAINER_TEST_IMAGE
:
boileaum/rosen:$CI_COMMIT_REF_NAME
CONTAINER_RELEASE_IMAGE
:
boileaum/rosen:latest
before_script
:
-
echo $DOCKERHUB_PASSWD | docker login -u boileaum --password-stdin
b:docker:
stage
:
build
tags
:
-
shell, docker
script
:
-
docker build --pull -t boileaum/rosen:latest -f ./docker/Dockerfile-rosen .
-
docker build --pull -t $CONTAINER_TEST_IMAGE -f ./docker/Dockerfile-rosen .
-
docker push $CONTAINER_TEST_IMAGE
t:docker:
stage
:
test
tags
:
-
shell, docker
script
:
-
docker build --pull -t boileaum/rosen:latest -f ./docker/Dockerfile-rosen .
-
docker run boileaum/rosen /bin/bash -c 'pytest -v'
-
docker pull $CONTAINER_TEST_IMAGE
-
docker run $CONTAINER_TEST_IMAGE /bin/bash -c 'pytest -v'
r:docker:
stage
:
release
tags
:
-
shell, docker
script
:
-
docker pull $CONTAINER_TEST_IMAGE
-
docker tag $CONTAINER_TEST_IMAGE $CONTAINER_RELEASE_IMAGE
-
docker push $CONTAINER_RELEASE_IMAGE
only
:
-
master
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