Update file .gitlab-ci.yml
This commit is contained in:
parent
6fd1736703
commit
cefc48e669
@ -1,19 +1,19 @@
|
||||
docker-build:
|
||||
# Official docker image.
|
||||
image: docker:latest
|
||||
stage: build
|
||||
variables:
|
||||
DOCKER_DRIVER: overlay
|
||||
# docker-build:
|
||||
# # Official docker image.
|
||||
# image: docker:latest
|
||||
# stage: build
|
||||
# variables:
|
||||
# DOCKER_DRIVER: overlay
|
||||
|
||||
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" .
|
||||
#- docker push "$CI_REGISTRY_IMAGE"
|
||||
only:
|
||||
- main
|
||||
# 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" .
|
||||
# #- docker push "$CI_REGISTRY_IMAGE"
|
||||
# only:
|
||||
# - main
|
||||
|
||||
|
||||
deploy:
|
||||
|
Reference in New Issue
Block a user