Commit 7e9fb5fe authored by Hengwen Zhang's avatar Hengwen Zhang

Publish docker image only in master branch

parent 49330b0b
Pipeline #189986 passed with stage
in 52 seconds
......@@ -30,6 +30,9 @@ masterJobLinux:
- master
tags:
- se
artifacts:
paths:
- install/rmi-model-server.jar
masterJobWindows:
stage: build
......@@ -60,11 +63,8 @@ BranchJobLinux:
- master
tags:
- se
artifacts:
paths:
- install/rmi-model-server.jar
BranchJobDocker:
masterJobDocker:
image: docker:dind
stage: docker
before_script:
......@@ -78,3 +78,5 @@ BranchJobDocker:
- docker tag rmi-server:latest $CI_REGISTRY_IMAGE:latest
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
- docker push $CI_REGISTRY_IMAGE:latest
only:
- master
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