SKALE-2202 fix building and publishing containers

parent 07c553db
...@@ -28,5 +28,5 @@ jobs: ...@@ -28,5 +28,5 @@ jobs:
echo "Version $VERSION" echo "Version $VERSION"
export RELEASE=true export RELEASE=true
echo "::set-env name=RELEASE::$RELEASE" echo "::set-env name=RELEASE::$RELEASE"
bash ./scripts/build_image.sh Dockerfile bash ./scripts/build_image.sh Dockerfile sgxwallet
bash ./scripts/publish_image.sh Dockerfile sgxwallet bash ./scripts/publish_image.sh sgxwallet
\ No newline at end of file \ No newline at end of file
...@@ -31,5 +31,5 @@ jobs: ...@@ -31,5 +31,5 @@ jobs:
echo "Version $VERSION" echo "Version $VERSION"
export RELEASE=true export RELEASE=true
echo "::set-env name=RELEASE::$RELEASE" echo "::set-env name=RELEASE::$RELEASE"
bash ./scripts/build_image.sh DockerfileBase bash ./scripts/build_image.sh DockerfileBase sgxwallet_base
bash ./scripts/publish_image.sh DockerfileBase sgxwallet_base bash ./scripts/publish_image.sh sgxwallet_base
\ No newline at end of file \ No newline at end of file
...@@ -26,7 +26,7 @@ jobs: ...@@ -26,7 +26,7 @@ jobs:
export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION) export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION)
echo "::set-env name=VERSION::$VERSION" echo "::set-env name=VERSION::$VERSION"
echo "Version $VERSION" echo "Version $VERSION"
bash ./scripts/build_image.sh DockerfileSimulation bash ./scripts/build_image.sh DockerfileSimulation sgxwallet_sim
- name: build container for testing - name: build container for testing
run: python3 scripts/docker_build.py DockerfileSimulation sgxwalletsim ${GITHUB_SHA} run: python3 scripts/docker_build.py DockerfileSimulation sgxwalletsim ${GITHUB_SHA}
- name: test - name: test
...@@ -41,7 +41,7 @@ jobs: ...@@ -41,7 +41,7 @@ jobs:
echo "Version $VERSION" echo "Version $VERSION"
export RELEASE=true export RELEASE=true
echo "::set-env name=RELEASE::$RELEASE" echo "::set-env name=RELEASE::$RELEASE"
bash ./scripts/publish_image.sh DockerfileSimulation sgxwalletsim bash ./scripts/publish_image.sh sgxwalletsim
- name: Create Release - name: Create Release
if: contains(github.ref, 'develop') || contains(github.ref, 'beta') || contains(github.ref, 'master') || contains(github.ref, 'stable') if: contains(github.ref, 'develop') || contains(github.ref, 'beta') || contains(github.ref, 'master') || contains(github.ref, 'stable')
id: create_release id: create_release
......
...@@ -3,13 +3,14 @@ ...@@ -3,13 +3,14 @@
set -e set -e
DOCKERFILE=$1 DOCKERFILE=$1
CONTAINER_NAME=$2
: "${VERSION?Need to set VERSION}" : "${VERSION?Need to set VERSION}"
: "${BRANCH?Need to set BRANCH}" : "${BRANCH?Need to set BRANCH}"
NAME=sgx NAME=sgx
REPO_NAME=skalenetwork/$NAME REPO_NAME=skalenetwork/$NAME
IMAGE_NAME=$REPO_NAME:$VERSION IMAGE_NAME=$REPO_NAME.$CONTAINER_NAME:$VERSION
LATEST_IMAGE_NAME=$REPO_NAME:$BRANCH-latest LATEST_IMAGE_NAME=$REPO_NAME:$BRANCH-latest
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
......
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
set -e set -e
DOCKERFILE=$1 CONTAINER_NAME=$1
CONTAINER_NAME=$2
: "${VERSION?Need to set VERSION}" : "${VERSION?Need to set VERSION}"
: "${BRANCH?Need to set BRANCH}" : "${BRANCH?Need to set BRANCH}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment