Skip to content

Commit

Permalink
migrate from bintray to github releases
Browse files Browse the repository at this point in the history
Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
  • Loading branch information
thehajime committed Sep 6, 2021
1 parent 65f43a8 commit 16837ac
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,15 @@ after_failure:
- cat /tmp/docker-manifest.log


## bintray package deploy
## package deploy to github release (TODO: look for bintray alt.)
before_deploy:
- bash -ex pkg/pre-deploy-deb.sh
- bash -ex pkg/pre-deploy-test-deb.sh

deploy:
# Upload debian packages to Bintray
provider: bintray
file: pkg/bintray-deb.json
user: $BINTRAY_USER
key: $BINTRAY_APIKEY
provider: releases
api_key: $GITHUB_TOKEN
file: $PACKAGE_NAME_VERSION
skip_cleanup: true
on:
condition: $TRAVIS_OS_NAME = linux
Expand Down
5 changes: 2 additions & 3 deletions pkg/pre-deploy-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
. $(dirname "${BASH_SOURCE[0]}")/../test/common.sh

# Prepare supplement files for runu
curl -L \
https://dl.bintray.com/ukontainer/ukontainer/$TRAVIS_OS_NAME/$ARCH/frankenlibc.tar.gz \
-o /tmp/frankenlibc.tar.gz
URL="https://github.com/ukontainer/frankenlibc/releases/download/dev/frankenlibc-$ARCH-$TRAVIS_OS_NAME.tar.gz"
curl -L $URL -o /tmp/frankenlibc.tar.gz
tar xfz /tmp/frankenlibc.tar.gz -C /tmp/


Expand Down
8 changes: 4 additions & 4 deletions test/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ create_runu_aux_dir() {
fi

# download pre-built frankenlibc
curl -L https://dl.bintray.com/ukontainer/ukontainer/$TRAVIS_OS_NAME/$ARCH/frankenlibc.tar.gz \
-o /tmp/frankenlibc.tar.gz
URL="https://github.com/ukontainer/frankenlibc/releases/download/dev/frankenlibc-$ARCH-$TRAVIS_OS_NAME.tar.gz"
URL_LINUX="https://github.com/ukontainer/frankenlibc/releases/download/dev/frankenlibc-amd64-linux.tar.gz"
curl -L $URL -o /tmp/frankenlibc.tar.gz
tar xfz /tmp/frankenlibc.tar.gz -C /tmp/
cp /tmp/opt/rump/bin/rexec $RUNU_AUX_DIR/rexec
cp /tmp/opt/rump/bin/lkick $RUNU_AUX_DIR/lkick
if [ $TRAVIS_OS_NAME == "osx" ]; then
curl -L https://dl.bintray.com/ukontainer/ukontainer/linux/amd64/frankenlibc.tar.gz \
-o /tmp/frankenlibc-linux.tar.gz
curl -L $URL_LINUX -o /tmp/frankenlibc-linux.tar.gz
tar xfz /tmp/frankenlibc-linux.tar.gz -C /tmp opt/rump/lib/libc.so
fi
if [ -f /tmp/opt/rump/lib/libc.so ] ; then
Expand Down

0 comments on commit 16837ac

Please sign in to comment.