Skip to content

Commit 4ca30f9

Browse files
committed
feat: ✨ add github runner files
1 parent f290363 commit 4ca30f9

34 files changed

Lines changed: 279 additions & 294 deletions

.artifacts/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

.github/workflows/build-spk.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/package.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# @format
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build-spk:
10+
name: Build Package
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
max-parallel: 1
15+
matrix:
16+
dsm: ['7.0']
17+
arch: ['avoton']
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
- name: Build Package
22+
uses: tomgrv/synology-package-builder@v1
23+
with:
24+
dsm: ${{ matrix.dsm }}
25+
arch: ${{ matrix.arch }}
26+
output: ./dist
27+
28+
- name: Upload Package
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: packages-${{ matrix.dsm }}-${{ matrix.arch }}
32+
path: ./dist/*.spk
33+
34+
create-release:
35+
name: Create Release
36+
runs-on: ubuntu-latest
37+
needs: build-spk
38+
if: startsWith(github.ref, 'refs/tags/')
39+
permissions:
40+
contents: write
41+
steps:
42+
- name: Checkout
43+
uses: actions/checkout@v4
44+
- name: Download Package Artifact
45+
uses: actions/download-artifact@v4
46+
with:
47+
path: ./dist
48+
- name: Create Release
49+
id: create_release
50+
uses: softprops/action-gh-release@v2
51+
with:
52+
files: ./dist/*.spk
53+
draft: false
54+
prerelease: false

.gitignore

100755100644
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
bin
2020
obj
2121
./.gitattributes
22+
.github/workflows/.secrets

.gitversion

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
major-version-bump-message: "^(build|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\([\\w\\s-]*\\))?(!:|:.*\\n\\n((.+\\n)+\\n)?BREAKING CHANGE:\\s.+)"
2+
minor-version-bump-message: "^(feat)(\\([\\w\\s-]*\\))?:"
3+
patch-version-bump-message: "^(build|ci|docs|fix|perf|refactor|revert|style|test)(\\([\\w\\s-]*\\))?:"

.vscode/settings.json

100644100755
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"\"workbench": {
3+
"colorCustomizations\"": null
4+
},
25
"workbench.colorCustomizations": {
36
"titleBar.activeBackground": "#f4d22a",
47
"titleBar.border": "#f4d22a",
@@ -9,4 +12,4 @@
912
"activityBar.foreground": "#16784f",
1013
"activityBar.inactiveForeground": "#12603f"
1114
}
12-
}
15+
}

README.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,36 @@
1-
# gh-runner-synology
1+
<!-- @format -->
2+
3+
# Github Runner Synology Package
4+
5+
## Description
6+
7+
This package allows you to run GitHub Actions on your Synology NAS. It uses the [myoung34/github-runner](https://github.com/myoung34/docker-github-actions-runner) GitHub Runner Docker image to execute workflows.
8+
9+
## Installation
10+
11+
1. Download the package from the [Releases](https://github.com/tomgrv/github-runner-synology/releases) page.
12+
13+
2. Open the Synology Package Center.
14+
15+
3. Click on "Manual Install" and select the downloaded `.spk` file.
16+
17+
4. Follow the installation instructions.
18+
19+
> The package will go in error state initially, but this is expected as it needs to be elevated to run properly.
20+
21+
5. Elevate the package by following the instructions in the [Elevate Package](https://github.com/tomgrv/synology-package-builder/blob/main/doc/elevated.md)
22+
23+
6. After elevation, the package will:
24+
- Download the docker image
25+
- Create a Docker container in the Container Manager
26+
- Start the GitHub Runner as configured.
27+
28+
## Credits
29+
30+
This package is based on the work of [myoung34](https://github.com/myoung34)
31+
32+
This package was created using the [Synology Package Builder Github Action](https://github.com/marketplace/actions/synology-package-builder-github-action).
33+
34+
## License
35+
36+
This package is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.

package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
2+
"name": "github-runner",
3+
"version": "2.325.0+1.0.0",
4+
"description": "Run GitHub Actions jobs on your Synology NAS using myoung34/github-runner docker image.",
5+
"license": "MIT",
26
"scripts": {
3-
"lint": "npx --yes lint-staged -p false",
7+
"lint": "npx --yes lint -staged -p false",
48
"release": "npx --yes commit-and-tag-version --no-verify --"
59
},
610
"config": {
@@ -119,5 +123,15 @@
119123
"*.{js,jsx,ts,tsx,md,html,css,vue,yaml,yml}": [
120124
"npx --yes prettier --write"
121125
]
122-
}
126+
},
127+
"synology": {
128+
"displayname": "Github Runner",
129+
"distributor": "tomgrv/synology-github-runner",
130+
"distributor_url": "https://github.com/tomgrv/synology-github-runner",
131+
"maintainer": "myoung34/docker-github-actions-runner",
132+
"maintainer_url": "https://github.com/myoung34/docker-github-actions-runner",
133+
"os_min_ver": "7.0-40337",
134+
"support_url": "https://github.com/tomgrv/synology-github-runner/issues"
135+
},
136+
"target": "./src"
123137
}

src/INFO.describe

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)