summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: e53243c1236212d845737c70098330efe1b52097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
variables:
  TMP_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA

include:
  - local: .gitlab/test.yml

stages:
  - build
  - test
  - tag
  - release

default:
  image: $TMP_IMAGE

build commit:
  image: docker:stable
  stage: build
  services:
    - docker:stable-dind
  script:
    - docker info
    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
    - docker build -t $TMP_IMAGE .
    - docker image inspect $TMP_IMAGE --format='{{.Size}}'
    - docker push $TMP_IMAGE