Skip to content

Commit

Permalink
do not build image on dev branches
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedius committed Mar 12, 2023
1 parent d395047 commit 7753cc8
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,3 @@ docker-build-master:
- docker push "$CI_REGISTRY_IMAGE"
only:
- master

docker-build-dev:
# Official docker image.
image: docker:latest
stage: build
tags:
- docker
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
# - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
except:
- master

0 comments on commit 7753cc8

Please sign in to comment.