Skip to content

Commit

Permalink
feat(src) src release to bintray (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
hutchic authored and hishamhm committed Apr 1, 2019
1 parent ebcaacf commit 304f55c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions release-kong.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ elif [ "$RESTY_IMAGE_BASE" == "amazonlinux" ]; then
REPOSITORY_NAME="${REPOSITORY_NAME:-$KONG_PACKAGE_NAME-rpm}"
REPOSITORY_OS_NAME="${REPOSITORY_OS_NAME:-aws}"
OUTPUT_FILE_SUFFIX=".aws.rpm"
elif [ "$RESTY_IMAGE_BASE" == "src" ]; then
BINTRAY_DIRECTORY=""
REPOSITORY_TYPE="${REPOSITORY_TYPE:-generic}"
REPOSITORY_NAME="${REPOSITORY_NAME:-$KONG_PACKAGE_NAME-src}"
REPOSITORY_OS_NAME="${REPOSITORY_OS_NAME:-src}"
OUTPUT_FILE_SUFFIX=".tar.gz"
curl -L https://github.com/Kong/kong/archive/$KONG_VERSION.tar.gz -o output/$KONG_PACKAGE_NAME-$KONG_VERSION$OUTPUT_FILE_SUFFIX
fi

REPOSITORY_OS_NAME=$(sed -e 's/\//-/g' <<< $REPOSITORY_OS_NAME)
Expand Down
2 changes: 2 additions & 0 deletions test/build_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ elif [ "$RESTY_IMAGE_BASE" == "rhel" ]; then
docker tag registry.access.redhat.com/rhel${RESTY_IMAGE_TAG} rhel:${RESTY_IMAGE_TAG}
DOCKER_FILE="Dockerfile.rpm"
RHEL=true
elif [ "$RESTY_IMAGE_BASE" == "src" ]; then
exit 0
else
echo "Unrecognized base image $RESTY_IMAGE_BASE"
exit 1
Expand Down
4 changes: 4 additions & 0 deletions test/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

set +e

if [[ "$RESTY_IMAGE_BASE" == "src" ]]; then
exit 0
fi

kubectl apply -f https://github.com/Faithlife/minikube-registry-proxy/raw/master/kube-registry-proxy.yml
curl -L https://github.com/Faithlife/minikube-registry-proxy/raw/master/docker-compose.yml | MINIKUBE_IP=$(minikube ip) docker-compose -p mkr -f - up -d

Expand Down

0 comments on commit 304f55c

Please sign in to comment.