Include last build time in stats
[GitLab/stricted-build/lineage_builder.git] / .gitlab-ci.yml
CommitLineData
31329c3f
TP
1stages:
2 - test
3 - build
4
5test:
6 stage: test
7 image: python:3.6
76ab4939
TP
8 tags:
9 - docker
31329c3f
TP
10 script:
11 - pip install -e .
12 - python test.py
13
14build:
15 stage: build
16 image: docker:stable
76ab4939
TP
17 tags:
18 - docker
31329c3f
TP
19 services:
20 - docker:dind
21 variables:
22 DOCKER_HOST: tcp://docker:2375
23 DOCKER_DRIVER: overlay2
24 script:
25 - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
26 - docker build -t $CI_REGISTRY_IMAGE:latest .
27 - docker tag $CI_REGISTRY_IMAGE:latest $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
28 - docker push $CI_REGISTRY_IMAGE:latest
29 - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
30 only:
31 refs:
32 - master