Update config to enable signing vote extensions (#4)

Co-authored-by: Shreerang Kale <shreerangkale@gmail.com>
Reviewed-on: #4
Co-authored-by: shreerang <shreerang@noreply.git.vdb.to>
Co-committed-by: shreerang <shreerang@noreply.git.vdb.to>
This commit is contained in:
shreerang 2025-08-18 08:57:26 +00:00 committed by nabarun
parent 38a7f3cb1c
commit a8f9d0296e
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,29 @@
name: Publish tmkms docker image on release
on:
release:
types: [published]
jobs:
build:
name: Run docker build and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run docker build
run: docker build -t cerc/tmkms -f stack-orchestrator/container-build/cerc-tmkms/Dockerfile .
- name: Get the version
id: vars
run: |
echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7})
echo ::set-output name=tag::$(echo ${GITHUB_REF#refs/tags/})
- name: Tag docker image
run: docker tag cerc/tmkms git.vdb.to/laconicnetwork/cerc/tmkms:${{steps.vars.outputs.sha}}
- name: Tag docker image
run: docker tag git.vdb.to/laconicnetwork/cerc/tmkms:${{steps.vars.outputs.sha}} git.vdb.to/laconicnetwork/cerc/tmkms:${{steps.vars.outputs.tag}}
- name: Docker Login
run: echo ${{ secrets.CICD_PUBLISH_TOKEN }} | docker login https://git.vdb.to -u laconiccicd --password-stdin
- name: Docker Push
run: docker push git.vdb.to/laconicnetwork/cerc/tmkms:${{steps.vars.outputs.sha}}
- name: Docker Push TAGGED
run: docker push git.vdb.to/laconicnetwork/cerc/tmkms:${{steps.vars.outputs.tag}}

View File

@ -42,6 +42,7 @@ cat <<EOF > $TMKMS_HOME/tmkms.toml
id = "$CHAIN_ID"
key_format = { type = "cosmos-json", account_key_prefix = "${KEY_PREFIX}pub", consensus_key_prefix = "${KEY_PREFIX}valconspub" }
state_file = "$TMKMS_STATE_DIR/priv_validator_state.json"
sign_extensions = true
[[validator]]
chain_id = "$CHAIN_ID"