Skip to content

Commit 7753cc8

Browse files
committed
do not build image on dev branches
1 parent d395047 commit 7753cc8

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

.gitlab-ci.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,3 @@ docker-build-master:
3434
- docker push "$CI_REGISTRY_IMAGE"
3535
only:
3636
- master
37-
38-
docker-build-dev:
39-
# Official docker image.
40-
image: docker:latest
41-
stage: build
42-
tags:
43-
- docker
44-
services:
45-
- docker:dind
46-
before_script:
47-
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
48-
script:
49-
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
50-
# - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
51-
except:
52-
- master

0 commit comments

Comments
 (0)