forked from ORNL-QCI/exatn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
36 lines (33 loc) · 952 Bytes
/
.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
stages:
- build
- deploy
build_devel:
stage: build
except:
- schedules
only:
- devel
script:
- cd docker/ci/ubuntu1804/nocuda/devel && docker build -t exatn/devel . --no-cache && docker run --rm exatn/devel bash -c "cd exatn/build && ctest --output-on-failure"
- docker system prune -f
- docker rmi -f exatn/devel
build_master:
stage: build
except:
- schedules
only:
- master
script:
- cd docker/ci/ubuntu1804/nocuda/master && docker build -t exatn/master . --no-cache && docker run --rm exatn/master bash -c "cd exatn/build && ctest --output-on-failure"
- docker system prune -f
- docker rmi -f exatn/master
docker run_docker_deploy:
stage: deploy
only:
- schedules
script:
- cd docker/deploy/dev && docker build -t exatn/exatn . --no-cache
- echo "$REGISTRY_PASSWORD" | docker login -u exatn --password-stdin
- docker push exatn/exatn
- docker system prune -f
- docker rmi -f exatn/exatn