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
906be5e4
Unverified
Commit
906be5e4
authored
May 19, 2020
by
Oleh Nikolaiev
Committed by
GitHub
May 19, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #88 from skalenetwork/feature/SKALE-2202-versioning
SKALE-2202 fix script
parents
487e7dc9
ce98907e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
build_and_publish.sh
scripts/build_and_publish.sh
+4
-2
calculate_version.sh
scripts/calculate_version.sh
+1
-1
No files found.
scripts/build_and_publish.sh
View file @
906be5e4
...
@@ -11,12 +11,14 @@ DOCKERFILE=$2
...
@@ -11,12 +11,14 @@ DOCKERFILE=$2
NAME
=
sgx
NAME
=
sgx
REPO_NAME
=
skalenetwork/
$NAME
REPO_NAME
=
skalenetwork/
$NAME
IMAGE_NAME
=
$REPO_NAME
:
$VERSION
IMAGE_NAME
=
$REPO_NAME
:
$VERSION
LATEST_IMAGE_NAME
=
$REPO_NAME
:
$CONTAINER
:
$BRANCH
-latest
LATEST_IMAGE_NAME
=
$REPO_NAME
-
$CONTAINER
:
$BRANCH
-latest
DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
>
/dev/null 2>&1
&&
pwd
)
"
# Build image
# Build image
echo
"Building
$IMAGE_NAME
..."
echo
"Building
$IMAGE_NAME
..."
docker build
-f
"
$D
OCKERFILE
"
-t
"
$IMAGE_NAME
"
||
exit
$?
docker build
-f
"
$D
IR
"
/
"
$DOCKERFILE
"
-t
"
$IMAGE_NAME
"
.
||
exit
$?
docker tag
"
$IMAGE_NAME
"
"
$LATEST_IMAGE_NAME
"
docker tag
"
$IMAGE_NAME
"
"
$LATEST_IMAGE_NAME
"
echo
"========================================================================================="
echo
"========================================================================================="
...
...
scripts/calculate_version.sh
View file @
906be5e4
...
@@ -41,7 +41,7 @@ fi
...
@@ -41,7 +41,7 @@ fi
for
((
VERSION_NUMBER
=
0
;
;
VERSION_NUMBER++
))
for
((
VERSION_NUMBER
=
0
;
;
VERSION_NUMBER++
))
do
do
if
[
"
$VERSION
"
=
"1.49"
]
&&
[
"
$VERSION_NUMBER
"
<
4
]
if
[
"
$VERSION
"
=
"1.49"
]
&&
[
"
$VERSION_NUMBER
"
-le
4
]
then
then
VERSION_NUMBER
=
4
VERSION_NUMBER
=
4
fi
fi
...
...
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