Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Docker.gitlab-ci.yml « gitlab-ci-yml « vendor - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f3fa3949656176b4332b6a5b31fb4c17cb693788 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Official docker image.
image: docker:latest

services:
  - docker:dind

build:
  stage: build
  script:
    - docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
    - docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" .
    - docker push "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME"