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
ad4df84f
Unverified
Commit
ad4df84f
authored
May 19, 2020
by
Oleh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-2202 small fixes
parent
67e1dd47
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
3 deletions
+38
-3
dockerimage.yml
.github/workflows/dockerimage.yml
+18
-1
dockerimagebase.yml
.github/workflows/dockerimagebase.yml
+19
-1
calculate_version.sh
scripts/calculate_version.sh
+1
-1
No files found.
.github/workflows/dockerimage.yml
View file @
ad4df84f
...
...
@@ -3,6 +3,9 @@ on: [push]
jobs
:
build
:
runs-on
:
ubuntu-latest
env
:
DOCKER_USERNAME
:
${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD
:
${{ secrets.DOCKER_PASSWORD }}
steps
:
-
name
:
Login to docker
env
:
...
...
@@ -27,5 +30,19 @@ jobs:
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
.github/workflows/dockerimagebase.yml
View file @
ad4df84f
...
...
@@ -6,6 +6,9 @@ on:
jobs
:
build
:
runs-on
:
ubuntu-latest
env
:
DOCKER_USERNAME
:
${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD
:
${{ secrets.DOCKER_PASSWORD }}
steps
:
-
name
:
Login to docker
env
:
...
...
@@ -29,4 +32,19 @@ jobs:
export RELEASE=true
echo "::set-env name=RELEASE::$RELEASE"
bash ./scripts/build_image.sh DockerfileBase
bash ./scripts/publish_image.sh DockerfileBase
\ No newline at end of file
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
scripts/calculate_version.sh
View file @
ad4df84f
...
...
@@ -41,7 +41,7 @@ fi
for
((
VERSION_NUMBER
=
0
;
;
VERSION_NUMBER++
))
do
if
[
"
$VERSION
"
=
"1.49"
]
&&
[
"
$VERSION_NUMBER
"
-l
e
4
]
if
[
"
$VERSION
"
=
"1.49"
]
&&
[
"
$VERSION_NUMBER
"
-l
t
4
]
then
VERSION_NUMBER
=
4
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