Skip to content

Commit f526029

Browse files
committed
First commit
0 parents  commit f526029

8 files changed

Lines changed: 143 additions & 0 deletions

File tree

.github/workflows/auto_check.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Bump upstream Version
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 */4 * * *" # every 4 hours
7+
8+
jobs:
9+
bump-upstream:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
16+
- run: npx @dappnode/dappnodesdk github-action bump-upstream
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
20+
PINATA_SECRET_API_KEY: ${{ secrets.PINATA_SECRET_API_KEY }}

.github/workflows/build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Build test
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
push:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: 20
15+
- run: npx @dappnode/dappnodesdk github-action build --skip_save
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
19+
PINATA_SECRET_API_KEY: ${{ secrets.PINATA_SECRET_API_KEY }}

.github/workflows/main.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "Main"
2+
on:
3+
pull_request:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- "master"
8+
- "main"
9+
- "v[0-9]+.[0-9]+.[0-9]+"
10+
paths-ignore:
11+
- "README.md"
12+
13+
jobs:
14+
build-test:
15+
runs-on: ubuntu-latest
16+
if: github.event_name != 'push'
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
- run: npx @dappnode/dappnodesdk github-action build --skip_save
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
26+
release:
27+
name: Release
28+
runs-on: ubuntu-latest
29+
if: github.event_name == 'push' || github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch'
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-node@v4
33+
with:
34+
node-version: 20
35+
- name: Publish patch
36+
run: npx @dappnode/dappnodesdk publish patch
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
DEVELOPER_ADDRESS: "0xf35960302a07022aba880dffaec2fdd64d5bf1c1"
40+
# Optional: uncomment if you want Pinata pinning during publish
41+
# PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
42+
# PINATA_SECRET_API_KEY: ${{ secrets.PINATA_SECRET_API_KEY }}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# DAppNodeSDK release directories
2+
build_*
3+
releases.json
4+
docker-compose-tmp.yml
5+
*tmp*

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ARG UPSTREAM_VERSION
2+
FROM n8nio/n8n:${UPSTREAM_VERSION}

avatar-n8n.png

15.4 KB
Loading

dappnode_package.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "n8n.public.dappnode.eth",
3+
"version": "0.1.0",
4+
"license": "GPL-3.0",
5+
"shortDescription": "Workflow automation for your home server",
6+
"description": "Self-hosted n8n on DAppNode.",
7+
"type": "service",
8+
"author": "dappnode",
9+
"mainService": "n8n",
10+
"architectures": [
11+
"linux/amd64",
12+
"linux/arm64"
13+
],
14+
"links": {
15+
"ui": "http://n8n.public.dappnode:5678/",
16+
"homepage": "https://n8n.io"
17+
},
18+
"upstreamRepo": "n8n-io/n8n",
19+
"upstreamVersion": "1.109.2",
20+
"upstreamArg": "UPSTREAM_VERSION",
21+
"exposable": [
22+
{
23+
"name": "n8n Webhooks",
24+
"description": "Public webhooks for n8n",
25+
"serviceName": "n8n",
26+
"port": 5678,
27+
"fromSubdomain": "webhooks"
28+
}
29+
]
30+
}

docker-compose.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: "3.5"
2+
3+
services:
4+
n8n:
5+
build:
6+
context: .
7+
dockerfile: Dockerfile
8+
args:
9+
UPSTREAM_VERSION: "1.109.2"
10+
image: "n8n.public.dappnode.eth:0.1.0"
11+
restart: unless-stopped
12+
environment:
13+
# Internal-only defaults (no TLS)
14+
N8N_HOST: "n8n.public.dappnode"
15+
N8N_PORT: "5678"
16+
N8N_PROTOCOL: "http"
17+
N8N_EDITOR_BASE_URL: "http://n8n.public.dappnode:5678/"
18+
N8N_BASIC_AUTH_ACTIVE: "false"
19+
N8N_SECURE_COOKIE: "false"
20+
NODE_ENV: "production"
21+
volumes:
22+
- n8n-data:/home/node/.n8n
23+
24+
volumes:
25+
n8n-data: {}

0 commit comments

Comments
 (0)