develop
Last change
on this file since 729bed4 was
7e25135,
checked in by Shane Alcock <salcock@…>, 2 years ago
|
Make sure we have curl on our deploy container
|
-
Property mode set to
100755
|
File size:
1.5 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | set -x -e -o pipefail |
---|
4 | |
---|
5 | VERSION=${CI_COMMIT_REF_NAME} |
---|
6 | PKGVERSION=1 |
---|
7 | ARCH=amd64 |
---|
8 | |
---|
9 | APIKEY=${BINTRAY_API_KEY} |
---|
10 | |
---|
11 | apt-get update |
---|
12 | apt-get install -y curl |
---|
13 | |
---|
14 | UBUNTU_DISTS=("xenial" "artful" "bionic") |
---|
15 | DEBIAN_DISTS=("stretch" "jessie" "sid" "buster") |
---|
16 | PACKAGE_LIST=("libtrace4" "libtrace4-dev" "libtrace4-tools" "libpacketdump4" "libpacketdump4-dev") |
---|
17 | |
---|
18 | for i in "${UBUNTU_DISTS[@]}" |
---|
19 | do |
---|
20 | for comp in "${PACKAGE_LIST[@]}"; do |
---|
21 | echo ubuntu_$i/${comp} |
---|
22 | |
---|
23 | if [ ! -f built-packages/ubuntu_$i/${comp}_${VERSION}-${PKGVERSION}_${ARCH}.deb ]; then |
---|
24 | continue |
---|
25 | fi |
---|
26 | |
---|
27 | curl -T built-packages/ubuntu_$i/${comp}_${VERSION}-${PKGVERSION}_${ARCH}.deb -usalcock:$APIKEY "https://api.bintray.com/content/wand/debian/$comp/$VERSION/pool/$i/main/lib${comp:3:1}/${comp}_${VERSION}-${PKGVERSION}_${ARCH}.deb;deb_distribution=$i;deb_component=main;deb_architecture=$ARCH" |
---|
28 | done |
---|
29 | done |
---|
30 | |
---|
31 | for i in "${DEBIAN_DISTS[@]}" |
---|
32 | do |
---|
33 | for comp in "${PACKAGE_LIST[@]}"; do |
---|
34 | echo debian_$i/${comp} |
---|
35 | if [ ! -f built-packages/debian_$i/${comp}_${VERSION}-${PKGVERSION}_${ARCH}.deb ]; then |
---|
36 | continue |
---|
37 | fi |
---|
38 | |
---|
39 | curl -T built-packages/debian_$i/${comp}_${VERSION}-${PKGVERSION}_${ARCH}.deb -usalcock:$APIKEY "https://api.bintray.com/content/wand/debian/$comp/$VERSION/pool/$i/main/lib${comp:3:1}/${comp}_${VERSION}-${PKGVERSION}_${ARCH}.deb;deb_distribution=$i;deb_component=main;deb_architecture=$ARCH" |
---|
40 | done |
---|
41 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.