瀏覽代碼

gitlab-ci.yml updated

Guillermo Espinoza 6 年之前
父節點
當前提交
686ad21835
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      .gitlab-ci.yml

+ 6 - 1
.gitlab-ci.yml

@@ -56,4 +56,9 @@ ftth_docker:
     - docker build --no-cache --tag $CONTAINER_IMAGE:latest ftth
     - docker push $CONTAINER_IMAGE:latest
   dependencies:
-    - ftth_clone
+    - ftth_clone
+  only:
+    refs:
+      - pushes
+    variables:
+      - $CI_COMMIT_REF_NAME == "master"