-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
37 lines (35 loc) · 1.45 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
stages:
- build
- deploy
run-build:
stage: build
image: faucet/dbuilder
script:
- cd /builds/faucetsdn/python3-networkx
- apt-get update
- mk-build-deps -i -r -t 'apt-get -f -y --force-yes'
- export DEBEMAIL='[email protected]' && export DEBFULLNAME='Faucet Maintainers'
- fakeroot debian/rules binary
- mkdir built-packages || true
- mv ../*.deb built-packages/
artifacts:
paths:
- built-packages/*
expire_in: 1 day
deploy-package:
stage: deploy
image: faucet/dbuilder
script:
- cd /builds/faucetsdn/python3-networkx/built-packages/
- echo "{\"url\":\"https://packagecloud.io\",\"token\":\"$PACKAGECLOUD_TOKEN\"}" > ~/.packagecloud
- package_cloud push faucetsdn/faucet/debian/jessie *.deb || true
- package_cloud push faucetsdn/faucet/debian/stretch *.deb || true
- package_cloud push faucetsdn/faucet/debian/buster *.deb || true
- package_cloud push faucetsdn/faucet/raspbian/jessie *.deb || true
- package_cloud push faucetsdn/faucet/raspbian/stretch *.deb || true
- package_cloud push faucetsdn/faucet/raspbian/buster *.deb || true
- package_cloud push faucetsdn/faucet/ubuntu/xenial *.deb || true
- package_cloud push faucetsdn/faucet/ubuntu/yakkety *.deb || true
- package_cloud push faucetsdn/faucet/ubuntu/zesty *.deb || true
- package_cloud push faucetsdn/faucet/ubuntu/artful *.deb || true
- package_cloud push faucetsdn/faucet/ubuntu/bionic *.deb || true