Commit 7cc8b562 authored by J. Fernando Sánchez's avatar J. Fernando Sánchez
Browse files

Moved before_script to images

parent 528bbcac
......@@ -7,9 +7,6 @@ variables:
DOCKER_DRIVER: overlay
DOCKERFILE: Dockerfile
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
stages:
- test
- images
......@@ -46,6 +43,8 @@ test-2.7:
.image: &image_definition
variables:
PYTHON_VERSION: "3.5"
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
script:
- docker build -f Dockerfile-3.5 . -t $CI_REGISTRY_IMAGE:$CI_BUILD_TAG-$PYTHON_VERSION
- docker push $CI_REGISTRY_IMAGE:$CI_BUILD_TAG-$PYTHON_VERSION
......
Markdown is supported
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