SSH_Docker/.gitlab-ci.yml
2021-04-09 14:21:41 +02:00

25 lines
495 B
YAML

stages:
- build
image: docker:latest
services:
- name: docker:dind
entrypoint: ["env", "-u", "DOCKER_HOST"]
command: ["dockerd-entrypoint.sh"]
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
# See https://github.com/docker-library/docker/pull/166
DOCKER_TLS_CERTDIR: ""
build:
stage: build
tags:
- dind
script:
- docker build --no-cache -t luki42/ssh:latest .
- docker login -p $DockerPWD -u luki42
- docker push luki42/ssh:latest