Update file .gitlab-ci.yml

This commit is contained in:
Lee 2023-01-13 23:23:45 +00:00
parent e9cfde81b9
commit 6fd1736703

@ -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:
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
only:
- main
deploy: