Files
cwshed-clone/.gitlab-ci.yml
T
2026-06-27 22:12:22 +03:00

25 lines
524 B
YAML

stages:
- build
variables:
DOCKER_IMAGE: $DOCKER_REGISTRY/cwshed:latest
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 dind
- docker build -t $DOCKER_IMAGE .
# Push the resulting image
- docker push $DOCKER_IMAGE
only:
- main