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
ce9a74eb
Unverified
Commit
ce9a74eb
authored
May 26, 2020
by
Stan Kladko
Committed by
GitHub
May 26, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into SKALE-1880-FIX-WARNINGS
parents
ffa39b7b
7f2d4e74
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
46 deletions
+9
-46
dockerimage.yml
.github/workflows/dockerimage.yml
+2
-18
dockerimagebase.yml
.github/workflows/dockerimagebase.yml
+2
-17
dockerimagesim.yml
.github/workflows/dockerimagesim.yml
+2
-2
calculate_version.sh
scripts/calculate_version.sh
+1
-8
publish_image.sh
scripts/publish_image.sh
+2
-1
No files found.
.github/workflows/dockerimage.yml
View file @
ce9a74eb
...
...
@@ -23,26 +23,10 @@ jobs:
echo "Branch $BRANCH"
export VERSION=$(cat VERSION)
echo "Version $VERSION"
export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION
sgxwallet
)
export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION)
echo "::set-env name=VERSION::$VERSION"
echo "Version $VERSION"
export RELEASE=true
echo "::set-env name=RELEASE::$RELEASE"
bash ./scripts/build_image.sh Dockerfile
bash ./scripts/publish_image.sh Dockerfile
-
name
:
Create Release
if
:
contains(github.ref, 'develop') || contains(github.ref, 'beta') || contains(github.ref, 'master') || contains(github.ref, 'stable')
id
:
create_release
uses
:
actions/create-release@latest
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
# This token is provided by Actions, you do not need to create your own token
with
:
tag_name
:
${{ env.VERSION }}
release_name
:
Release ${{ env.VERSION }}
body
:
|
Changes in this Release
- First Change
- Second Change
draft
:
false
prerelease
:
true
bash ./scripts/publish_image.sh Dockerfile sgxwallet
\ No newline at end of file
.github/workflows/dockerimagebase.yml
View file @
ce9a74eb
...
...
@@ -26,25 +26,10 @@ jobs:
echo "Branch $BRANCH"
export VERSION=$(cat VERSION)
echo "Version $VERSION"
export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION
sgxwallet_base
)
export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION)
echo "::set-env name=VERSION::$VERSION"
echo "Version $VERSION"
export RELEASE=true
echo "::set-env name=RELEASE::$RELEASE"
bash ./scripts/build_image.sh DockerfileBase
bash ./scripts/publish_image.sh DockerfileBase
-
name
:
Create Release
if
:
contains(github.ref, 'develop') || contains(github.ref, 'beta') || contains(github.ref, 'master') || contains(github.ref, 'stable')
id
:
create_release
uses
:
actions/create-release@latest
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
# This token is provided by Actions, you do not need to create your own token
with
:
tag_name
:
${{ env.VERSION }}
release_name
:
Release ${{ env.VERSION }}
body
:
|
Changes in this Release
- First Change
- Second Change
draft
:
false
prerelease
:
true
\ No newline at end of file
bash ./scripts/publish_image.sh DockerfileBase sgxwallet_base
\ No newline at end of file
.github/workflows/dockerimagesim.yml
View file @
ce9a74eb
...
...
@@ -23,7 +23,7 @@ jobs:
echo "Branch $BRANCH"
export VERSION=$(cat VERSION)
echo "Version $VERSION"
export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION
sgxwalletsim
)
export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION)
echo "::set-env name=VERSION::$VERSION"
echo "Version $VERSION"
bash ./scripts/build_image.sh DockerfileSimulation
...
...
@@ -41,7 +41,7 @@ jobs:
echo "Version $VERSION"
export RELEASE=true
echo "::set-env name=RELEASE::$RELEASE"
bash ./scripts/publish_image.sh DockerfileSimulation
bash ./scripts/publish_image.sh DockerfileSimulation
sgxwalletsim
-
name
:
Create Release
if
:
contains(github.ref, 'develop') || contains(github.ref, 'beta') || contains(github.ref, 'master') || contains(github.ref, 'stable')
id
:
create_release
...
...
scripts/calculate_version.sh
View file @
ce9a74eb
...
...
@@ -2,7 +2,6 @@
BRANCH
=
$1
VERSION
=
$2
CONTAINER
=
$3
if
[
-z
"
$BRANCH
"
]
then
...
...
@@ -16,12 +15,6 @@ then
exit
1
fi
if
[
-z
"
$CONTAINER
"
]
then
echo
"The base container is not set."
exit
1
fi
git fetch
--tags
if
[
"
$BRANCH
"
=
"master"
]
...
...
@@ -45,7 +38,7 @@ do
then
VERSION_NUMBER
=
4
fi
RESULT_VERSION
=
"
$
CONTAINER
.
$
VERSION
-
$LABEL
.
$VERSION_NUMBER
"
RESULT_VERSION
=
"
$VERSION
-
$LABEL
.
$VERSION_NUMBER
"
if
!
[
$(
git tag
-l
?
$RESULT_VERSION
)
]
then
echo
"
$RESULT_VERSION
"
...
...
scripts/publish_image.sh
View file @
ce9a74eb
...
...
@@ -3,13 +3,14 @@
set
-e
DOCKERFILE
=
$1
CONTAINER_NAME
=
$2
:
"
${
VERSION
?Need to set VERSION
}
"
:
"
${
BRANCH
?Need to set BRANCH
}
"
NAME
=
sgx
REPO_NAME
=
skalenetwork/
$NAME
IMAGE_NAME
=
$REPO_NAME
:
$VERSION
IMAGE_NAME
=
$REPO_NAME
.
$CONTAINER_NAME
:
$VERSION
LATEST_IMAGE_NAME
=
$REPO_NAME
:
$BRANCH
-latest
:
"
${
DOCKER_USERNAME
?Need to set DOCKER_USERNAME
}
"
...
...
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