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