Skip to content

Commit

Permalink
Merge branch 'release/1.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
euskadi31 committed Jan 13, 2019
2 parents 045bee2 + 4f476d3 commit 6c595fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.0
1.2.1
2 changes: 1 addition & 1 deletion docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 5 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6c595fc

Please sign in to comment.