forked from qir-alliance/qcor
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
71 lines (66 loc) · 2.18 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
stages:
- build
- deploy
docker build_master:
stage: build
except:
- schedules
only:
- master
script:
- cd docker/ci/ubuntu1804/master && docker build -t qcor/master-ci . --no-cache
- docker system prune -f
- docker rmi -f qcor/master-ci
- git config remote.aideqcqcor.url >&- || git remote add -t master aideqcqcor https://amccaskey:$AIDEQC_ACCESS_TOKEN@github.com/aide-qc/qcor
- git push -f aideqcqcor HEAD:master
- git remote remove aideqcqcor
# builds xacc and qcor bottles nightly
docker run_brew_linux_bottles:
stage: deploy
only:
- schedules
script:
- git clone https://github.com/aide-qc/homebrew-deploy
- cd homebrew-deploy/scripts/linux-x86_64
- docker build --build-arg AIDEQC_ACCESS_TOKEN=$AIDEQC_ACCESS_TOKEN --build-arg JFROG_API_KEY=$JFROG_API_KEY -t qcor/brew-linux . --no-cache
- docker system prune -f
- docker rmi -f qcor/brew-linux
allow_failure: true
docker run_macosx_catalina_bottles:
stage: deploy
only:
- schedules
tags:
- osx
script:
- $HOME/catalina/run_build.sh $AIDEQC_ACCESS_TOKEN
allow_failure: true
# docker run_macosx_mojave_bottles:
# stage: deploy
# only:
# - schedules
# tags:
# - mojave
# script:
# - id=$(docker run -d -it --device /dev/kvm -p 50922:10022 -v "${HOME}/mojave/mac_hdd_ng.img:/image" sickcodes/docker-osx:naked)
# - sleep 240
# - ssh mojave-ci "PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin bash run_bottle_build.sh $AIDEQC_ACCESS_TOKEN"
# - docker stop $id && docker rm -v $id
# allow_failure: true
docker run_docker_deploy:
stage: deploy
only:
- schedules
script:
- cd docker/ci/alpine/qcor && docker build -t qcor/cli . --no-cache
- cd ../code-server && docker build -t qcor/qcor . --no-cache
- cd ../qsharp-code-server && docker build -t qcor/qsharp-qcor . --no-cache
- cd ../code-server-dev && docker build -t qcor/qcor-dev . --no-cache
- echo "$REGISTRY_PASSWORD" | docker login -u qcor --password-stdin
- docker push qcor/cli
- docker push qcor/qcor
- docker push qcor/qsharp-qcor
- docker push qcor/qcor-dev
- docker system prune -f
- docker rmi -f qcor/qcor qcor/cli qcor/qsharp-qcor qcor/qcor-dev xacc/alpine
allow_failure: true