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
17292216
Unverified
Commit
17292216
authored
May 28, 2020
by
Oleh Nikolaiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-2202 fix building and publishing containers
parent
07c553db
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
dockerimage.yml
.github/workflows/dockerimage.yml
+2
-2
dockerimagebase.yml
.github/workflows/dockerimagebase.yml
+2
-2
dockerimagesim.yml
.github/workflows/dockerimagesim.yml
+2
-2
build_image.sh
scripts/build_image.sh
+2
-1
publish_image.sh
scripts/publish_image.sh
+1
-2
No files found.
.github/workflows/dockerimage.yml
View file @
17292216
...
...
@@ -28,5 +28,5 @@ jobs:
echo "Version $VERSION"
export RELEASE=true
echo "::set-env name=RELEASE::$RELEASE"
bash ./scripts/build_image.sh Dockerfile
bash ./scripts/publish_image.sh Dockerfile sgxwallet
\ No newline at end of file
bash ./scripts/build_image.sh Dockerfile sgxwallet
bash ./scripts/publish_image.sh sgxwallet
\ No newline at end of file
.github/workflows/dockerimagebase.yml
View file @
17292216
...
...
@@ -31,5 +31,5 @@ jobs:
echo "Version $VERSION"
export RELEASE=true
echo "::set-env name=RELEASE::$RELEASE"
bash ./scripts/build_image.sh DockerfileBase
bash ./scripts/publish_image.sh DockerfileBase sgxwallet_base
\ No newline at end of file
bash ./scripts/build_image.sh DockerfileBase sgxwallet_base
bash ./scripts/publish_image.sh sgxwallet_base
\ No newline at end of file
.github/workflows/dockerimagesim.yml
View file @
17292216
...
...
@@ -26,7 +26,7 @@ jobs:
export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION)
echo "::set-env name=VERSION::$VERSION"
echo "Version $VERSION"
bash ./scripts/build_image.sh DockerfileSimulation
bash ./scripts/build_image.sh DockerfileSimulation
sgxwallet_sim
-
name
:
build container for testing
run
:
python3 scripts/docker_build.py DockerfileSimulation sgxwalletsim ${GITHUB_SHA}
-
name
:
test
...
...
@@ -41,7 +41,7 @@ jobs:
echo "Version $VERSION"
export RELEASE=true
echo "::set-env name=RELEASE::$RELEASE"
bash ./scripts/publish_image.sh
DockerfileSimulation
sgxwalletsim
bash ./scripts/publish_image.sh 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/build_image.sh
View file @
17292216
...
...
@@ -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
DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
>
/dev/null 2>&1
&&
pwd
)
"
...
...
scripts/publish_image.sh
View file @
17292216
...
...
@@ -2,8 +2,7 @@
set
-e
DOCKERFILE
=
$1
CONTAINER_NAME
=
$2
CONTAINER_NAME
=
$1
:
"
${
VERSION
?Need to set VERSION
}
"
:
"
${
BRANCH
?Need to set BRANCH
}
"
...
...
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