From 8911f338106b97cee5a0844ed7e6e6d5db514902 Mon Sep 17 00:00:00 2001 From: lesterli Date: Fri, 18 Oct 2024 15:52:31 +0800 Subject: [PATCH] feat: add a ci workflow to publish the bitcoinsim image --- .github/workflows/publish.yml | 16 ++++++++++++++++ contrib/images/bitcoindsim/wrapper.sh | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..77648aa7 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,16 @@ +name: docker_publish + +on: + push: + paths: + - 'contrib/images/bitcoindsim/**' + +jobs: + docker_pipeline: + needs: [] + uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.7.0 + secrets: inherit + with: + publish: true + dockerfile: ./contrib/images/bitcoindsim/Dockerfile + repoName: bitcoindsim \ No newline at end of file diff --git a/contrib/images/bitcoindsim/wrapper.sh b/contrib/images/bitcoindsim/wrapper.sh index 75836921..65ad7a1a 100755 --- a/contrib/images/bitcoindsim/wrapper.sh +++ b/contrib/images/bitcoindsim/wrapper.sh @@ -23,7 +23,7 @@ if [[ ! -d "$BITCOIN_DATA" ]]; then fi echo "Generating bitcoin.conf file at $BITCOIN_CONF" if [[ "$BITCOIN_NETWORK" == "testnet" ]]; then - NETWORK_LABEL="test" + NETWORK_LABEL="test" # Testnet3 else NETWORK_LABEL="$BITCOIN_NETWORK" fi