Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ name: Docker

on:
push:
branches: [ "dev" ]
tags:
- 'v*.*.*'
#branches: [ "dev" ]
#tags:
#- 'v*.*.*'

env:
# Use docker.io for Docker Hub if empty
Expand Down Expand Up @@ -65,10 +65,6 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
# branch event
type=ref,event=branch
# tag event
type=ref,event=tag
# full length commit sha
type=sha,format=long

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ test_env_generator:

.PHONY: docker
docker:
docker image build -t ghcr.io/sourcenetwork/sourcehub:dev .
docker image build -t ghcr.io/sourcenetwork/sourcehub:dev .
4 changes: 2 additions & 2 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DEFAULT_CHAIN_ID="sourcehub"
DEFAULT_MONIKER="node"
DEV_FACUET_MNEMONIC="comic very pond victory suit tube ginger antique life then core warm loyal deliver iron fashion erupt husband weekend monster sunny artist empty uphold"

if [ ! -d /sourcehub/.initialized ]; then
if [ ! -f /sourcehub/config/genesis.json ]; then
echo "Initializing SourceHub"

if [ -z "$CHAIN_ID" ]; then
Expand All @@ -19,7 +19,7 @@ if [ ! -d /sourcehub/.initialized ]; then
MONIKER=$DEFAULT_MONIKER
fi

sourcehubd init "$MONIKER" --chain-id $CHAIN_ID --default-denom="uopen" 2>/dev/null
sourcehubd init "$MONIKER" --chain-id $CHAIN_ID --default-denom="uopen"

# copy the container specific default config files,
# which overrides some settings such as listening address
Expand Down
Loading
Loading