forked from haojiangwang/tcltk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
40 lines (38 loc) · 1.1 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
stages:
- deploy
debian.bionic:
stage: deploy
only:
- /^version-.*$/
script:
- rm -rf ../gse4-service ./rcompile ./release
- ./compile-base
- ./compile-extras
- git clone http://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.auk.cvclab.lan/gse/gse4-service.git ../gse4-service
- debdir=$(mktemp -d)
- ./build-deb -allowdirty -nobranchname -outdir $debdir
- scp $debdir/* www-data@gse.auk.cvclab.lan:/cmdata/www/builds/TCLTK/
- rm -rf $debdir
environment:
name: production
url: http://gse.auk.cvclab.lan/builds/?dir=TCLTK
tags:
- ubuntu18
debian.focal:
stage: deploy
only:
- /^version-.*$/
script:
- rm -rf ../gse4-service ./rcompile ./release
- ./compile-base
- ./compile-extras
- git clone http://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.auk.cvclab.lan/gse/gse4-service.git ../gse4-service
- debdir=$(mktemp -d)
- ./build-deb -allowdirty -nobranchname -outdir $debdir
- scp $debdir/* www-data@gse.auk.cvclab.lan:/cmdata/www/builds/TCLTK/
- rm -rf $debdir
environment:
name: production
url: http://gse.auk.cvclab.lan/builds/?dir=TCLTK
tags:
- ubuntu20