Update .gitlab-ci.yml file
This commit is contained in:
parent
a2057da863
commit
bbbe2aeaa4
1 changed files with 14 additions and 1 deletions
|
@ -5,7 +5,7 @@ stages: # List of stages for jobs, and their order of execution
|
|||
|
||||
image: debian
|
||||
|
||||
docker-build:
|
||||
docker-build-push:
|
||||
# Use the official docker image.
|
||||
image: docker:latest
|
||||
stage: build
|
||||
|
@ -30,6 +30,19 @@ docker-build:
|
|||
- master
|
||||
- dev
|
||||
|
||||
docker-build:
|
||||
image: docker:latest
|
||||
stage: build
|
||||
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" .
|
||||
except:
|
||||
- master
|
||||
- dev
|
||||
|
||||
before_script:
|
||||
- apt-get update -qq
|
||||
- apt-get install -qq git
|
||||
|
|
Loading…
Reference in a new issue