Upload storkctl binaries to s3
@@ -6,20 +6,26 @@ go:
before_install:
- sudo apt-get update -yq
- sudo apt-get install go-md2man -y
+ - sudo apt-get install -y awscli
script:
- |
if [ "${TRAVIS_BRANCH}" == "master" ]; then
export DOCKER_HUB_STORK_TAG=master
export DOCKER_HUB_STORK_TEST_TAG=latest
+ export DOCKER_HUB_CMD_EXECUTOR_TAG=master
else
export DOCKER_HUB_STORK_TAG=`git rev-parse --short HEAD`
export DOCKER_HUB_STORK_TEST_TAG=`git rev-parse --short HEAD`
+ export DOCKER_HUB_CMD_EXECUTOR_TAG=`git rev-parse --short HEAD`
fi
make && make pretest && make test && make container && make integration-test && make integration-test-container &&
if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
docker login -u "${DOCKER_USER}" -p "${DOCKER_PASSWORD}";
make deploy;
make integration-test-deploy;
+ aws s3 cp bin/linux/storkctl s3://${BUCKET_NAME}/storkctl/latest/linux/;
+ aws s3 cp bin/windows/storkctl.exe s3://${BUCKET_NAME}/storkctl/latest/windows/;
+ aws s3 cp bin/darwin/storkctl s3://${BUCKET_NAME}/storkctl/latest/darwin/;
fi
notifications:
email:
