Sha256: e9573b5fd32dda1cef3ac20794874f2fe5d5285430a840f881f84cec2ca7e607
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
#!/bin/sh echo "Starting build process in: `pwd`" set -e VERSION="${TRAVIS_TAG:-0.0.0}" : "${DOCKER_TAG:=sumologic/fluentd-kubernetes-sumologic}" : "${DOCKER_USERNAME:=sumodocker}" PLUGIN_NAME="fluent-plugin-kubernetes_sumologic" echo "Building for tag $VERSION, modify .gemspec file..." sed -i.bak "s/0.0.0/$VERSION/g" ./$PLUGIN_NAME.gemspec rm -f ./$PLUGIN_NAME.gemspec.bak echo "Install bundler..." bundle install echo "Run unit tests..." bundle exec rake echo "Build gem $PLUGIN_NAME $VERSION..." gem build $PLUGIN_NAME echo "Building docker image with $DOCKER_TAG:$VERSION and $DOCKER_TAG:latest in `pwd`..." docker build . -f ./Dockerfile -t $DOCKER_TAG:$VERSION --no-cache docker build . -f ./Dockerfile -t $DOCKER_TAG:latest if [[ -z "${DOCKER_PASSWORD}" ]] || [[ -z "${TRAVIS_TAG}" ]]; then echo "Skip Docker pushing" else echo "Pushing docker image with $DOCKER_TAG:$VERSION and $DOCKER_TAG:latest..." echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin docker push $DOCKER_TAG:$VERSION docker push $DOCKER_TAG:latest fi rm -f ./*.gem echo "DONE"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-kubernetes_sumologic-0.0.1 | ci/build.sh |