Update file .gitlab-ci.yml

This commit is contained in:
Lee 2023-01-13 23:23:59 +00:00
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: