mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nlp.git
synced 2025-01-13 19:40:34 +00:00
Add services and image
This commit is contained in:
parent
7c8164fece
commit
cc838300cf
@ -18,12 +18,15 @@ Build:
|
||||
- docker
|
||||
|
||||
Push master:
|
||||
image: docker:latest
|
||||
only:
|
||||
- master
|
||||
script:
|
||||
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
|
||||
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:latest
|
||||
- docker push $CI_REGISTRY_IMAGE:latest
|
||||
services:
|
||||
- docker:dind
|
||||
stage: push
|
||||
tags:
|
||||
- docker
|
||||
@ -31,10 +34,13 @@ Push master:
|
||||
Push others:
|
||||
except:
|
||||
- master
|
||||
image: docker:latest
|
||||
script:
|
||||
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
|
||||
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
|
||||
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
|
||||
services:
|
||||
- docker:dind
|
||||
stage: push
|
||||
tags:
|
||||
- docker
|
||||
|
Loading…
x
Reference in New Issue
Block a user