Update .gitlab-ci.yml
This commit is contained in:
parent
cfa1876032
commit
a19df0033c
@ -4,12 +4,13 @@ stages:
|
|||||||
- build
|
- build
|
||||||
- push
|
- push
|
||||||
- deploy
|
- deploy
|
||||||
.before_script
|
|
||||||
|
.docker_before_script:
|
||||||
before_script:
|
before_script:
|
||||||
- echo -n $CI_REGISTRY_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
- echo -n $CI_REGISTRY_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
||||||
|
|
||||||
build:
|
build:
|
||||||
extends: .before_script
|
extends: .docker_before_script
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
@ -20,7 +21,7 @@ build:
|
|||||||
|
|
||||||
# Tag the "master" branch as "latest"
|
# Tag the "master" branch as "latest"
|
||||||
push latest:
|
push latest:
|
||||||
extends: .before_script
|
extends: .docker_before_script
|
||||||
stage: push
|
stage: push
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
@ -33,7 +34,7 @@ push latest:
|
|||||||
|
|
||||||
# Docker tag any Git tag
|
# Docker tag any Git tag
|
||||||
push tag:
|
push tag:
|
||||||
extends: .before_script
|
extends: .docker_before_script
|
||||||
stage: push
|
stage: push
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
@ -46,7 +47,7 @@ push tag:
|
|||||||
|
|
||||||
# Docker Deploy
|
# Docker Deploy
|
||||||
# deploy:
|
# deploy:
|
||||||
# extends: .before_script
|
# extends: .docker_before_script
|
||||||
# stage: deploy
|
# stage: deploy
|
||||||
# tags:
|
# tags:
|
||||||
# - docker
|
# - docker
|
||||||
|
|||||||
Reference in New Issue
Block a user