Unverified Commit 0ad1fc82 authored by kladko's avatar kladko

SKALE-3596 Intel submission. Bumped version.

parent c5807ce1
...@@ -5,8 +5,7 @@ on: ...@@ -5,8 +5,7 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
env: env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
steps: steps:
...@@ -19,7 +18,7 @@ jobs: ...@@ -19,7 +18,7 @@ jobs:
run: git submodule update --init --recursive run: git submodule update --init --recursive
- name: build - name: build
run: python3 scripts/docker_build.py Dockerfile sgxwallet ${GITHUB_SHA} run: python3 scripts/docker_build.py Dockerfile sgxwallet ${GITHUB_SHA}
- name: build image - name: build and deploy docker image
if: | if: |
contains(github.ref, 'develop') || contains(github.ref, 'beta') || contains(github.ref, 'develop') || contains(github.ref, 'beta') ||
contains(github.ref, 'master') || contains(github.ref, 'stable') || contains(github.ref, 'master') || contains(github.ref, 'stable') ||
...@@ -35,22 +34,6 @@ jobs: ...@@ -35,22 +34,6 @@ jobs:
export RELEASE=true export RELEASE=true
echo "::set-env name=RELEASE::$RELEASE" echo "::set-env name=RELEASE::$RELEASE"
bash ./scripts/build_image.sh DockerfileRelease sgxwallet_release bash ./scripts/build_image.sh DockerfileRelease sgxwallet_release
- name: deploy docker image
if: |
contains(github.ref, 'develop') || contains(github.ref, 'beta') ||
contains(github.ref, 'master') || contains(github.ref, 'stable') ||
contains(github.ref, 'SECURE_ENCLAVE_CHANGES')
run : |
export BRANCH=${GITHUB_REF##*/}
echo "Branch $BRANCH"
export VERSION=$(cat VERSION)
echo "Version $VERSION"
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/publish_image.sh sgxwallet_release bash ./scripts/publish_image.sh sgxwallet_release
env: env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true ACTIONS_ALLOW_UNSECURE_COMMANDS: true
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