Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
sgxwallet
Commits
8dcf6005
Unverified
Commit
8dcf6005
authored
May 18, 2020
by
Oleh Nikolaiev
Committed by
GitHub
May 18, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #85 from skalenetwork/feature/SKALE-2202-versioning
Feature/skale 2202 versioning
parents
e86abd44
1ac16dc0
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
5 deletions
+10
-5
dockerimage.yml
.github/workflows/dockerimage.yml
+1
-1
dockerimagebase.yml
.github/workflows/dockerimagebase.yml
+1
-1
dockerimagesim.yml
.github/workflows/dockerimagesim.yml
+1
-1
SGXWALLET_VERSION
SGXWALLET_VERSION
+1
-1
VERSION
VERSION
+1
-0
build_and_publish.sh
scripts/build_and_publish.sh
+1
-1
calculate_version.sh
scripts/calculate_version.sh
+4
-0
No files found.
.github/workflows/dockerimage.yml
View file @
8dcf6005
...
@@ -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"
...
...
.github/workflows/dockerimagebase.yml
View file @
8dcf6005
...
@@ -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"
...
...
.github/workflows/dockerimagesim.yml
View file @
8dcf6005
...
@@ -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"
...
...
SGXWALLET_VERSION
View file @
8dcf6005
#define SGXWALLET_VERSION "1.49.3"
#define SGXWALLET_VERSION "1.49.4"
\ No newline at end of file
VERSION
0 → 100644
View file @
8dcf6005
1.49
\ No newline at end of file
scripts/build_and_publish.sh
View file @
8dcf6005
...
@@ -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
=
s
chain
NAME
=
s
gx
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
...
...
scripts/calculate_version.sh
View file @
8dcf6005
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment