Commit daafa9e6 authored by Bartosz Ziemba's avatar Bartosz Ziemba

Update .gitlab-ci.yml

parent 44c4d871
Pipeline #3297 passed with stage
in 8 minutes and 35 seconds
......@@ -13,16 +13,23 @@ before_script:
build_image:
stage: build
image: docker:18.09.7
image: 'docker:18.09.7'
only:
- master
services:
- docker:18.09.7-dind
- 'docker:18.09.7-dind'
variables:
DOCKERHUB_NAME: clarinpl/$CI_PROJECT_NAME
before_script:
- ''
script:
- docker build -t clarinpl/featfilt .
- docker build -t $DOCKERHUB_NAME .
- echo $DOCKER_PASSWORD > pass.txt
- cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin
- rm pass.txt
- docker push clarinpl/featfilt
- docker push $DOCKERHUB_NAME
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker image tag $DOCKERHUB_NAME $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
- docker image tag $DOCKERHUB_NAME $CI_REGISTRY_IMAGE:latest
- docker push $CI_REGISTRY_IMAGE
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