Unverified Commit 8dcf6005 authored by Oleh Nikolaiev's avatar Oleh Nikolaiev Committed by GitHub

Merge pull request #85 from skalenetwork/feature/SKALE-2202-versioning

Feature/skale 2202 versioning
parents e86abd44 1ac16dc0
...@@ -18,7 +18,7 @@ jobs: ...@@ -18,7 +18,7 @@ jobs:
run : | run : |
export BRANCH=${GITHUB_REF##*/} export BRANCH=${GITHUB_REF##*/}
echo "Branch $BRANCH" echo "Branch $BRANCH"
export VERSION=$(cat SGXWALLET_VERSION) export VERSION=$(cat VERSION)
export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION sgxwallet) export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION sgxwallet)
echo "::set-env name=VERSION::$VERSION" echo "::set-env name=VERSION::$VERSION"
echo "Version $VERSION" echo "Version $VERSION"
......
...@@ -21,7 +21,7 @@ jobs: ...@@ -21,7 +21,7 @@ jobs:
run : | run : |
export BRANCH=${GITHUB_REF##*/} export BRANCH=${GITHUB_REF##*/}
echo "Branch $BRANCH" echo "Branch $BRANCH"
export VERSION=$(cat SGXWALLET_VERSION) export VERSION=$(cat VERSION)
export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION sgxwallet_base) export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION sgxwallet_base)
echo "::set-env name=VERSION::$VERSION" echo "::set-env name=VERSION::$VERSION"
echo "Version $VERSION" echo "Version $VERSION"
......
...@@ -22,7 +22,7 @@ jobs: ...@@ -22,7 +22,7 @@ jobs:
run : | run : |
export BRANCH=${GITHUB_REF##*/} export BRANCH=${GITHUB_REF##*/}
echo "Branch $BRANCH" echo "Branch $BRANCH"
export VERSION=$(cat SGXWALLET_VERSION) export VERSION=$(cat VERSION)
export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION sgxwalletsim) export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION sgxwalletsim)
echo "::set-env name=VERSION::$VERSION" echo "::set-env name=VERSION::$VERSION"
echo "Version $VERSION" echo "Version $VERSION"
......
#define SGXWALLET_VERSION "1.49.3" #define SGXWALLET_VERSION "1.49.4"
\ No newline at end of file
1.49
\ No newline at end of file
...@@ -8,7 +8,7 @@ DOCKERFILE=$2 ...@@ -8,7 +8,7 @@ DOCKERFILE=$2
: "${VERSION?Need to set VERSION}" : "${VERSION?Need to set VERSION}"
: "${BRANCH?Need to set BRANCH}" : "${BRANCH?Need to set BRANCH}"
NAME=schain NAME=sgx
REPO_NAME=skalenetwork/$NAME REPO_NAME=skalenetwork/$NAME
IMAGE_NAME=$REPO_NAME:$CONTAINER:$VERSION IMAGE_NAME=$REPO_NAME:$CONTAINER:$VERSION
LATEST_IMAGE_NAME=$REPO_NAME:$CONTAINER:$BRANCH-latest LATEST_IMAGE_NAME=$REPO_NAME:$CONTAINER:$BRANCH-latest
......
...@@ -41,6 +41,10 @@ fi ...@@ -41,6 +41,10 @@ fi
for (( VERSION_NUMBER=0; ; VERSION_NUMBER++ )) for (( VERSION_NUMBER=0; ; VERSION_NUMBER++ ))
do do
if [ "$VERSION" = "1.49" ] && [ "$VERSION_NUMBER" < "4" ]
then
VERSION_NUMBER=4
fi
RESULT_VERSION="$CONTAINER:$VERSION-$LABEL.$VERSION_NUMBER" RESULT_VERSION="$CONTAINER:$VERSION-$LABEL.$VERSION_NUMBER"
if ! [ $(git tag -l ?$RESULT_VERSION) ] if ! [ $(git tag -l ?$RESULT_VERSION) ]
then then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment