forked from eclipse/xacc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
44 lines (41 loc) · 1.56 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
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
# - git clone https://github.com/aide-qc/homebrew-deploy && cd homebrew-deploy
# - git clone --depth=1 --recursive https://github.com/eclipse/xacc
# - tar -czvf xacc-1.0.0.tar.gz xacc
# - jfrog bt u --override --publish xacc-1.0.0.tar.gz amccaskey/qci-homebrew-bintray/xacc-source/xacc-1.0.0
# - export src_sha=$(sha256sum xacc-1.0.0.tar.gz | cut -d " " -f 1)
# - sed -i "0,/sha256 \".*\"/s//sha256 \"$src_sha\" /" Formula/xacc.rb
# - git add Formula/xacc.rb
# - git commit -m "updating sha256 for xacc homebrew formula"
# - git config remote.aideqchbdeploy.url >&- || git remote add -t master aideqchbdeploy https://amccaskey:[email protected]/aide-qc/homebrew-deploy
# - git push -f aideqchbdeploy HEAD:master
# - git remote remove aideqchbdeploy
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