-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
48 lines (41 loc) · 1 KB
/
.gitlab-ci.yml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
image: gitlab.kwant-project.org:5005/qt/adaptive-paper
stages:
- build-env
- test
## Building Docker environments
## Only runs when docker specifications change
.build-env: &build-env
stage: build-env
only:
changes:
- Dockerfile
- environment.yml
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
artifacts:
untracked: true
expire_in: 1 hour
before_script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
build-env:ubuntu: &build-docker
<<: *build-env
only:
changes:
- Dockerfile
- environment.yml
script:
- /kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/Dockerfile
--destination $CI_REGISTRY_IMAGE
## Test Jobs
make:
stage: test
script:
- source activate revtex-markdown-paper && make
artifacts:
paths:
- paper.pdf
- paper.tex