mirror/.gitlab-ci.yml

27 lines
481 B
YAML
Raw Normal View History

image: registry.gitlab.pztrn.name/containers/mirror/docker:19.03.13
2020-12-23 18:39:02 +05:00
services:
2020-12-23 18:49:16 +05:00
- name: registry.gitlab.pztrn.name/containers/mirror/docker:19.03.13-dind
alias: docker
2020-12-23 18:39:02 +05:00
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_TCP_PORT: 2375
DOCKER_TLS_CERTDIR: ""
stages:
- mirror
before_script:
2020-12-23 18:39:56 +05:00
- apk add bash
2020-12-23 18:39:02 +05:00
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
mirror:
stage: mirror
tags:
- docker
script:
- ./mirror.sh
only:
- master