Skip to content

Commit d1498bc

Browse files
authored
Merge pull request #120 from dappnode/refactor/use-dappnode-build-hash
ci: use dappnode-build-hash reusable workflow
2 parents bc3ed5a + 807fc24 commit d1498bc

2 files changed

Lines changed: 13 additions & 24 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
name: Build test
1+
name: Build
2+
23
on:
34
workflow_dispatch:
45
push:
5-
pull_request:
6+
branches-ignore:
7+
- "main"
8+
paths-ignore: ["README.md"]
69

710
jobs:
811
build:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v4
12-
- run: npx @dappnode/dappnodesdk github-action build --variant hoodi
13-
env:
14-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15-
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
16-
PINATA_SECRET_API_KEY: ${{ secrets.PINATA_SECRET_API_KEY }}
12+
uses: dappnode/workflows/.github/workflows/dappnode-build-hash.yml@master
13+
with:
14+
variants: "hoodi"
15+
secrets: inherit

.github/workflows/main.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,23 @@
11
name: "Main"
22
on:
3-
pull_request:
4-
workflow_dispatch:
53
push:
64
branches:
7-
- "master"
85
- "main"
96
- "v[0-9]+.[0-9]+.[0-9]+"
107
paths-ignore:
118
- "README.md"
9+
repository_dispatch:
10+
workflow_dispatch:
1211

1312
jobs:
14-
build-test:
15-
runs-on: ubuntu-latest
16-
name: Build test
17-
if: github.event_name != 'push'
18-
steps:
19-
- uses: actions/checkout@v4
20-
- run: npx @dappnode/dappnodesdk build --skip_save --variant mainnet
21-
2213
release:
2314
name: Release
2415
runs-on: ipfs-dev-gateway
25-
if: github.event_name == 'push' || github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch'
2616
steps:
27-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v7
2818
- uses: actions/setup-node@v6
2919
with:
30-
node-version: "22"
20+
node-version: "24"
3121
- name: Publish
3222
run: npx @dappnode/dappnodesdk publish patch --github-release --content_provider=http://10.200.200.7:5001 --eth_provider=https://web3.dappnode.net --timeout 2h --all-variants
3323
env:

0 commit comments

Comments
 (0)