Skip to content

Commit

Permalink
feat: introduce nano-nightly dockerhub registry for live network
Browse files Browse the repository at this point in the history
- all non release builds for the live network are pushed to nano-nightly
- only release builds will be pushed to nanocurrency/nano dockerhub registry
  • Loading branch information
gr0vity-dev committed Mar 21, 2024
1 parent 645be84 commit 334a9de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 7 additions & 1 deletion ci/actions/linux/docker-impl/docker-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 334a9de

Please sign in to comment.