Skip to content

ci: use dappnode-build-hash reusable workflow#49

Merged
3alpha merged 1 commit into
masterfrom
refactor/use-dappnode-build-hash
Jul 9, 2026
Merged

ci: use dappnode-build-hash reusable workflow#49
3alpha merged 1 commit into
masterfrom
refactor/use-dappnode-build-hash

Conversation

@3alpha

@3alpha 3alpha commented Jul 9, 2026

Copy link
Copy Markdown
Member

Context

This repo'''s build pipeline (an inlined build-test step with --skip_save) never pinned to IPFS or posted a comment on PRs, so tropibot bumps had no installable artifact for testers.

Approach

  • .github/workflows/build.yml (new) — thin stub calling dappnode-build-hash@master with secrets: inherit. Triggers on push (non-default branch) and workflow_dispatch only.
  • .github/workflows/main.yml — slimmed to the release job only. build-test removed; actions/checkout upgraded to v7; actions/setup-node to v6; Node 24. Dropped the redundant if: condition (the on.push.branches filter already restricts to master/v*). Added repository_dispatch to triggers.

Test instructions

  1. Push a commit to a non-default branch (or open a test PR).
  2. Verify the Build workflow runs once and posts a comment with an IPFS install link and hash tagged (by dappnodebot/build-action) and authored by tropibot[bot].
  3. After merge to master, the Main workflow should run the release.

Replaces the inlined build-test (which used `--skip_save` and never
posted an IPFS hash on PRs) with a thin caller for the new
`dappnode/workflows/.github/workflows/dappnode-build-hash.yml@master`
reusable workflow. `build.yml` (new) handles both push and
workflow_dispatch; `main.yml` is reduced to the release job only.

Also:
- Upgrades `actions/checkout` to v7 and Node 24 (with
  `actions/setup-node@v6`) for the release job.
- Drops the redundant `if:` condition on the release job (the
  `on.push.branches` filter already restricts to master/v*).
- Adds `repository_dispatch` to the `on:` triggers.
- Adds `branches-ignore: ["master"]` to `build.yml`'s push trigger
  so the workflow doesn't run on default-branch pushes (the SDK
  already auto-detects and does a no-op test build in that case).

The reusable workflow auto-detects the event: on push to a non-default
branch it builds, pins to Pinata, and posts a comment authored by
tropibot[bot] on the PR; on push to the default branch it does a
test build only. `workflow_dispatch` and `repository_dispatch` only
fire the release job (no `build.yml` trigger).
@3alpha 3alpha self-assigned this Jul 9, 2026
@tropibot

tropibot Bot commented Jul 9, 2026

Copy link
Copy Markdown

Dappnode bot has built and pinned the built packages to an IPFS node, for commit: 1f2cdb5

This is a development version and should only be installed for testing purposes.

  1. Package monero.dnp.dappnode.eth

Install link

Hash: /ipfs/QmdoUU2AmcVyKVnqFA2nAgkQE7QjT5gDZWEoPf63H63WeG

(by dappnodebot/build-action)

@3alpha 3alpha merged commit 2a73969 into master Jul 9, 2026
1 check passed
@3alpha 3alpha deleted the refactor/use-dappnode-build-hash branch July 9, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant