From 312850d722a8e86035e10b1aea07c9de9209d194 Mon Sep 17 00:00:00 2001
From: szymekc <szymekc98@gmail.com>
Date: Tue, 26 Jan 2021 15:18:35 +0100
Subject: [PATCH] build_image on master

---
 .gitlab-ci.yml | 1 -
 entrypoint.sh  | 8 ++++----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 00ef5ca..cbc777b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,7 +2,6 @@ build_image:
   image: docker:18.09.7
   only:
     - master
-    - dev
   services:
     - 'docker:18.09.7-dind'
   script:
diff --git a/entrypoint.sh b/entrypoint.sh
index c159289..183b92b 100644
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -1,9 +1,9 @@
 #!/bin/bash
-#if [ ! -f /sent2vec/pretrained_model.bin ]; then
-#  curl https://minio.clarin-pl.eu/public/models/kgr10.bin --create-dirs -o /sent2vec/pretrained_model.bin
-#fi
+if [ ! -f /sent2vec/pretrained_model.bin ]; then
+  curl https://minio.clarin-pl.eu/public/models/kgr10.bin --create-dirs -o /sent2vec/pretrained_model.bin
+fi
 cd /home/worker
 git clone https://${GITLAB_USERNAME}:${GITLAB_PASSWORD}@gitlab.clarin-pl.eu/embedrankgroup/ai-research-keyphrase-extraction.git -b polish-azon-improvement --single-branch repo
 mv repo/* .
-rm repo
+rm -r repo
 python3.6 embedrank_worker.py
\ No newline at end of file
-- 
GitLab