forked from eclipse/xacc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
51 lines (46 loc) · 1.31 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
49
50
51
stages:
- build
- deploy
docker build_devel:
stage: build
except:
- schedules
only:
- xacc-devel
script:
- cd docker/ci/ubuntu1804/devel && docker build -t xacc/devel-ci . --no-cache
docker build_master:
stage: build
except:
- schedules
only:
- master
script:
- cd docker/ci/ubuntu1804/master && docker build -t xacc/master-ci . --no-cache
- git config remote.aideqc.url >&- || git remote add -t master aideqc https://amccaskey:[email protected]/aide-qc/xacc
- git push -f aideqc HEAD:master
- git remote remove aideqc
docker run_docker_deploy:
stage: deploy
only:
- schedules
script:
- cd docker/deploy/dev && docker build -t xacc/xacc . --no-cache
- echo "$REGISTRY_PASSWORD" | docker login -u xacc --password-stdin
- docker push xacc/xacc
docker run_docker_xacc_quac_deploy:
stage: deploy
only:
- schedules
script:
- cd docker/deploy/dev_quac && docker build -t xacc/xacc-quac . --no-cache
- echo "$REGISTRY_PASSWORD" | docker login -u xacc --password-stdin
- docker push xacc/xacc-quac
docker run_docker_xacc_qcs_deploy:
stage: deploy
only:
- schedules
script:
- cd docker/deploy/dev_qcs && docker build -t xacc/xacc-qcs . --no-cache
- echo "$REGISTRY_PASSWORD" | docker login -u xacc --password-stdin
- docker push xacc/xacc-qcs