SSH_Docker/.gitlab-ci.yml

25 lines
495 B
YAML
Raw Normal View History

2021-04-09 12:21:41 +00:00
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