source: bintray-upload.sh @ 243bfd1

develop
Last change on this file since 243bfd1 was 40c87be, checked in by Shane Alcock <salcock@…>, 21 months ago

Change our bintray repo for libtrace to wand/libtrace

  • Property mode set to 100755
File size: 1.5 KB
Line 
1#!/bin/bash
2
3set -x -e -o pipefail
4
5VERSION=${CI_COMMIT_REF_NAME}
6PKGVERSION=1
7ARCH=amd64
8
9APIKEY=${BINTRAY_API_KEY}
10
11apt-get update
12apt-get install -y curl
13
14UBUNTU_DISTS=("xenial" "artful" "bionic")
15DEBIAN_DISTS=("stretch" "jessie" "sid" "buster")
16PACKAGE_LIST=("libtrace4" "libtrace4-dev" "libtrace4-tools" "libpacketdump4" "libpacketdump4-dev")
17
18for i in "${UBUNTU_DISTS[@]}"
19do
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/libtrace/$comp/$VERSION/pool/$i/main/${comp}_${VERSION}-${PKGVERSION}_${ARCH}.deb;deb_distribution=$i;deb_component=main;deb_architecture=$ARCH"
28        done
29done
30
31for i in "${DEBIAN_DISTS[@]}"
32do
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/libtrace/$comp/$VERSION/pool/$i/main/${comp}_${VERSION}-${PKGVERSION}_${ARCH}.deb;deb_distribution=$i;deb_component=main;deb_architecture=$ARCH"
40        done
41done
Note: See TracBrowser for help on using the repository browser.