From cc0f84d740e615df4a95ee3376c5f0099444e4b4 Mon Sep 17 00:00:00 2001 From: Axel Etcheverry Date: Sun, 13 Jan 2019 19:34:27 +0100 Subject: [PATCH 1/2] fix(travis): deploy scripts --- scripts/deploy.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index ef7626b..4d55f22 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -8,12 +8,15 @@ PROJECT_WORKSPACE="$(cd $PROJECT_WORKSPACE; pwd)" DOCKER_ORGANISATION="hyperscale" DOCKER_REPO="hyperpic" +LATEST="false" + echo "Config:" if [ -z "$TRAVIS_TAG" ]; then CI_BUILD_VERSION=$(git describe --match 'v[0-9]*' --dirty='-dev' --always) else CI_BUILD_VERSION="${TRAVIS_TAG#v}" DOCKER_TAG="$CI_BUILD_VERSION" + LATEST="true" fi if [ -z "$TRAVIS_COMMIT" ]; then @@ -55,7 +58,7 @@ docker build --rm \ "$PROJECT_WORKSPACE" # tagging latest only master branch -if [ "$CI_BUILD_BRANCH" == "master" ]; then +if [ "$LATEST" == "true" ]; then echo "Tagging $DOCKER_ORGANISATION/$DOCKER_REPO:latest.." docker tag "$DOCKER_ORGANISATION/$DOCKER_REPO" "$DOCKER_ORGANISATION/$DOCKER_REPO:latest" fi @@ -66,7 +69,7 @@ if [ "$CI" == "true" ]; then echo "Pushing $DOCKER_ORGANISATION/$DOCKER_REPO:$DOCKER_TAG..." docker push "$DOCKER_ORGANISATION/$DOCKER_REPO:$DOCKER_TAG" - if [ "$CI_BUILD_BRANCH" == "master" ]; then + if [ "$LATEST" == "true" ]; then echo "Pushing $DOCKER_ORGANISATION/$DOCKER_REPO:latest..." docker push "$DOCKER_ORGANISATION/$DOCKER_REPO:latest" fi From 4f476d36c8e9430c4b225d1087cd243f0c7cb184 Mon Sep 17 00:00:00 2001 From: Axel Etcheverry Date: Sun, 13 Jan 2019 19:34:41 +0100 Subject: [PATCH 2/2] feat(project): update version file --- .version | 2 +- docs/swagger.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.version b/.version index 26aaba0..6085e94 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -1.2.0 +1.2.1 diff --git a/docs/swagger.yaml b/docs/swagger.yaml index d38b5b7..bace333 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -10,7 +10,7 @@ consumes: - "application/json" info: title: "Hyperpic API" - version: "v1.2.0" + version: "v1.2.1" x-logo: url: "https://cdn.rawgit.com/hyperscale/hyperpic/master/_resources/hyperpic.svg" description: Fast HTTP microservice for high-level image processing.