-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.gitlab-ci.yml
51 lines (47 loc) · 1.73 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:
- deploy
- build-site
- docker-deploy
deploy build_site:
stage: build-site
only:
- master
script:
- git clone https://github.com/ornl-qci/qcor_spec
- cp -r qcor_spec/markdown/* website/content/lang_spec/
- cd website && hugo --minify -d ../public && cd ..
- git config remote.aideqcdeploy.url >&- || git remote add -t master aideqcdeploy https://amccaskey:$AIDEQC_ACCESS_TOKEN@github.com/aide-qc/deploy
- cp -r public/* . && rm -rf public
- git status
- git pull origin master
- git add background categories css developers lang_spec getting_started js tags users *.html *.xml *.png
- git status
- export n_changes=$(git diff --cached --numstat | wc -l)
- if [ "$n_changes" -gt "0" ]; then git commit -m "updating aide-qc software docs page" && git push -f aideqcdeploy HEAD:master && git remote remove aideqcdeploy ; else echo "Ran the else statement, no files to upload." ; fi
docker run_docker_deploy_combined_bionic:
stage: deploy
only:
- schedules
script:
- cd docker/combined/bionic && sh build.sh $AIDEQC_ACCESS_TOKEN
- docker system prune -f
- docker rmi -f combined/bionic
docker run_docker_deploy_combined_focal:
stage: deploy
only:
- schedules
script:
- cd docker/combined/focal && sh build.sh $AIDEQC_ACCESS_TOKEN
- docker system prune -f
- docker rmi -f combined/focal
docker run_aide_qc_docker_deploy:
stage: docker-deploy
only:
- schedules
script:
- git clone https://github.com/aide-qc/aide-qc && cd aide-qc
- cd docker/alpine && docker build -t qcor/aide-qc . --no-cache
- echo "$REGISTRY_PASSWORD" | docker login -u qcor --password-stdin
- docker push qcor/aide-qc
- docker system prune -f
- docker rmi -f qcor/aide-qc