Skip to content
Snippets Groups Projects
Commit 3866fbbf authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Test dockerhub

parent 39543c8f
Branches
Tags
No related merge requests found
......@@ -2,18 +2,26 @@ stages:
- build
- test
variables:
CONTAINER_TEST_IMAGE: boileaum/rosen:latest
before_script:
- docker login -u boileaum -p $DOCKERHUB_PASSWD
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 build --pull -t boileaum/rosen:latest -f ./docker/Dockerfile-rosen .
- docker pull $CONTAINER_TEST_IMAGE
- docker run $CONTAINER_TEST_IMAGE /bin/bash -c 'pytest -v'
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment