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

21 lines
476 B
YAML

stages:
- build
variables:
DOCKER_IMAGE: $DOCKER_REGISTRY/cwshed:latest
DOCKER_HOST: unix:///var/run/docker.sock
build:
stage: build
image: docker:29.6.1-cli
script:
# Docker Registry
- echo "$DOCKER_PASSWORD" | docker login $DOCKER_REGISTRY -u "$DOCKER_USERNAME" --password-stdin
# Docker build over the mounted host socket
- docker build -t $DOCKER_IMAGE .
# Push the resulting image
- docker push $DOCKER_IMAGE
only:
- main