.gitlab-ci.yml 291 Bytes
Newer Older
kaiyou's avatar
kaiyou committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
image: docker:stable

services:
  - docker:dind

variables:
  IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME

before_script:
  - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY

build:
  stage: build
  script:
    - docker build -t $IMAGE_TAG .
    - docker push $IMAGE_TAG