forked from eclipse/xacc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
37 lines (33 loc) · 930 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
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
- cd ../../ci/alpine && docker build -t xacc/alpine . --no-cache
- echo "$REGISTRY_PASSWORD" | docker login -u xacc --password-stdin
- docker push xacc/xacc
- docker push xacc/alpine
allow_failure: true