This commit is contained in:
nyan404 committed 2026-06-27 22:12:22 +03:00
1 parent 6d4ac08d02
commit 643aed964a
1 file changed
+6 -2
+6 -2
View File
@@ -3,15 +3,19 @@ stages:
variables:
DOCKER_IMAGE: $DOCKER_REGISTRY/cwshed:latest
DOCKER_HOST: unix:///var/run/docker.sock
DOCKER_HOST: tcp://docker:2375
build:
stage: build
image: docker:29.6.1-cli
services:
- docker:29.6.1-dind
variables:
DOCKER_TLS_CERTDIR: ""
script:
# Docker Registry
- echo "$DOCKER_PASSWORD" | docker login $DOCKER_REGISTRY -u "$DOCKER_USERNAME" --password-stdin
# Docker build over the mounted host socket
# Docker build over dind
- docker build -t $DOCKER_IMAGE .
# Push the resulting image