image: registry.gitlab.pztrn.name/containers/mirror/docker:20.10.8-dind services: - name: registry.gitlab.pztrn.name/containers/mirror/docker:20.10.8-dind alias: docker variables: DOCKER_HOST: tcp://docker:2375 DOCKER_TCP_PORT: 2375 DOCKER_TLS_CERTDIR: "" stages: - mirror before_script: - apk add bash - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY mirror: stage: mirror tags: - docker script: - ./mirror.sh only: - master