source: .gitlab-ci.yml @ 1cdbc6a

develop
Last change on this file since 1cdbc6a was 1cdbc6a, checked in by Shane Alcock <salcock@…>, 20 months ago

Attempt to automate upload of packages to our bintray

  • Property mode set to 100644
File size: 2.2 KB
Line 
1stages:
2  - build
3  - deploy
4  - upload
5
6build-debian-jessie:
7  stage: build
8  image: debian:jessie
9  script:
10    - ./gitlab-build.sh
11    - mkdir -p built-packages/debian_jessie/
12    - mv ../*.deb built-packages/debian_jessie/
13  artifacts:
14    paths:
15      - built-packages/*
16    expire_in: 1 day
17  only:
18    - tags
19
20build-debian-stretch:
21  stage: build
22  image: debian:stretch
23  script:
24    - ./gitlab-build.sh
25    - mkdir -p built-packages/debian_stretch/
26    - mv ../*.deb built-packages/debian_stretch/
27  artifacts:
28    paths:
29      - built-packages/*
30    expire_in: 1 day
31  only:
32    - tags
33
34build-debian-buster:
35  stage: build
36  image: debian:buster
37  script:
38    - ./gitlab-build.sh
39    - mkdir -p built-packages/debian_buster/
40    - mv ../*.deb built-packages/debian_buster/
41  artifacts:
42    paths:
43      - built-packages/*
44    expire_in: 1 day
45  only:
46    - tags
47
48build-debian-sid:
49  stage: build
50  image: debian:sid
51  script:
52    - ./gitlab-build.sh
53    - mkdir -p built-packages/debian_sid/
54    - mv ../*.deb built-packages/debian_sid/
55  artifacts:
56    paths:
57      - built-packages/*
58    expire_in: 1 day
59  only:
60    - tags
61
62build-ubuntu-xenial:
63  stage: build
64  image: ubuntu:xenial
65  script:
66    - ./gitlab-build.sh
67    - mkdir -p built-packages/ubuntu_xenial/
68    - mv ../*.deb built-packages/ubuntu_xenial/
69  artifacts:
70    paths:
71      - built-packages/*
72    expire_in: 1 day
73  only:
74    - tags
75
76build-ubuntu-artful:
77  stage: build
78  image: ubuntu:artful
79  script:
80    - ./gitlab-build.sh
81    - mkdir -p built-packages/ubuntu_artful/
82    - mv ../*.deb built-packages/ubuntu_artful/
83  artifacts:
84    paths:
85      - built-packages/*
86    expire_in: 1 day
87  only:
88    - tags
89
90build-ubuntu-bionic:
91  stage: build
92  image: ubuntu:bionic
93  script:
94    - ./gitlab-build.sh
95    - mkdir -p built-packages/ubuntu_bionic/
96    - mv ../*.deb built-packages/ubuntu_bionic/
97  artifacts:
98    paths:
99      - built-packages/*
100    expire_in: 1 day
101  only:
102    - tags
103
104deploy-packages:
105  stage: deploy
106  image: ubuntu:bionic
107  script:
108    - ls built-packages/
109  artifacts:
110    paths:
111      - built-packages/*
112    expire_in: 1 month
113  only:
114    - tags
115
116upload-packages:
117  stage: upload
118  image: ubuntu-bionic
119  script:
120    - ./bintray-upload.sh
121  only:
122    - tags
123
Note: See TracBrowser for help on using the repository browser.