.gitlab-ci.yml 293 Bytes
Newer Older
kaiyou's avatar
kaiyou committed
1
2
image: docker:stable

kaiyou's avatar
kaiyou committed
3
4
#services:
#  - docker:dind
kaiyou's avatar
kaiyou committed
5
6
7
8
9
10
11
12
13
14
15
16

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