From 334a9de57f7ef7b4d3534ed7c9fb1381bced3544 Mon Sep 17 00:00:00 2001 From: gr0vity-dev Date: Thu, 21 Mar 2024 14:05:11 +0100 Subject: [PATCH] feat: introduce nano-nightly dockerhub registry for live network - all non release builds for the live network are pushed to nano-nightly - only release builds will be pushed to nanocurrency/nano dockerhub registry --- .github/workflows/build_deploy.yml | 1 + ci/actions/linux/docker-impl/docker-common.sh | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy.yml index c55fd407a6..49c9a884ec 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/build_deploy.yml @@ -160,6 +160,7 @@ jobs: DOCKER_REGISTRY: ${{ vars.DOCKER_REGISTRY }} DOCKER_USER: ${{ vars.DOCKER_USER }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} + IS_RELEASE_BUILD: ${{ github.event.inputs.is_release_build || 'false' }} steps: - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 #v3.1.0 with: diff --git a/ci/actions/linux/docker-impl/docker-common.sh b/ci/actions/linux/docker-impl/docker-common.sh index bcda39fbbd..02d9a8cc7e 100755 --- a/ci/actions/linux/docker-impl/docker-common.sh +++ b/ci/actions/linux/docker-impl/docker-common.sh @@ -18,7 +18,13 @@ fi if [[ "$NETWORK" = "LIVE" ]]; then echo "Live" - network_tag_suffix='' + if [[ "$IS_RELEASE_BUILD" = "true" ]]; then + network_tag_suffix='' + docker_image_name="${DOCKER_REGISTRY}/nano" + else + network_tag_suffix='-nightly' + docker_image_name="${DOCKER_REGISTRY}/nano-nightly" + fi network="live" elif [[ "$NETWORK" = "BETA" ]]; then echo "Beta"