Commit 2f9a3dbf authored by Bartosz Ziemba's avatar Bartosz Ziemba

Update .gitlab-ci.yml

parent 7af2488f
Pipeline #3384 passed with stages
in 5 minutes and 14 seconds
...@@ -18,11 +18,18 @@ build_image: ...@@ -18,11 +18,18 @@ build_image:
- master - master
services: services:
- 'docker:18.09.7-dind' - 'docker:18.09.7-dind'
variables:
DOCKERHUB_NAME: clarinpl/$CI_PROJECT_NAME
before_script: before_script:
- '' - ''
script: script:
- docker build -t clarinpl/subfeatsel . - docker build -t $DOCKERHUB_NAME .
- echo $DOCKER_PASSWORD > pass.txt - echo $DOCKER_PASSWORD > pass.txt
- cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin - cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin
- rm pass.txt - rm pass.txt
- docker push clarinpl/subfeatsel - 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