Skip to content

Commit

Permalink
Update travis file (#37)
Browse files Browse the repository at this point in the history
Signed-off-by: Serhii Aheienko <serhii.aheienko@gmail.com>
  • Loading branch information
saheienko committed Feb 24, 2021
1 parent 00f286a commit 458c103
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ go:
- 1.13.7
script:
- |
if [ "${TRAVIS_BRANCH}" == "master" ]; then
if [ -n "${TRAVIS_TAG}" ]; then
export RELEASE_VER=${TRAVIS_TAG}
elif [ "${TRAVIS_BRANCH}" == "master" ]; then
export DOCKER_IMAGE_TAG=master
else
export DOCKER_IMAGE_TAG=`git rev-parse --short HEAD`
export RELEASE_VER=`git rev-parse --short HEAD`
fi
make all &&
if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
RELEASE_VER := latest
RELEASE_VER ?= latest
BUILD_DATE := $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
BASE_DIR := $(shell git rev-parse --show-toplevel)
GIT_SHA := $(shell git rev-parse --short HEAD)
BIN := $(BASE_DIR)/bin
export RELEASE_VER

DOCKER_IMAGE_REPO?=portworx
DOCKER_IMAGE_NAME?=kdmp
Expand Down

0 comments on commit 458c103

Please sign in to comment.