mirror/.gitlab-ci.yml

27 lines
484 B
YAML
Raw Normal View History

2021-09-27 19:21:18 +05:00
image: registry.gitlab.pztrn.name/containers/mirror/docker:20.10.8-dind
2020-12-23 18:39:02 +05:00
services:
2021-09-27 19:04:36 +05:00
- name: registry.gitlab.pztrn.name/containers/mirror/docker:20.10.8-dind
2020-12-23 18:49:16 +05:00
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