-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from hnez/github-runner
GitHub/GitLab Action/Pipeline Runners
- Loading branch information
Showing
8 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
meta-lxatac-software/recipes-devtools/github-act-runner/files/github-act-runner.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=Schedule GitHub actions to run on this TAC | ||
ConditionPathExists=/etc/github-act-runner/settings.json | ||
|
||
[Service] | ||
Type=simple | ||
ExecStart=/usr/bin/github-act-runner run | ||
Environment="XDG_CACHE_HOME=/srv/github-act-runner" | ||
WorkingDirectory=/etc/github-act-runner | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
29 changes: 29 additions & 0 deletions
29
meta-lxatac-software/recipes-devtools/github-act-runner/github-act-runner.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
SUMMARY = "GitHub act Runner" | ||
DESCRIPTION = "Alternative implementation of the GitHub Action runner protocol written in Go" | ||
|
||
SRC_URI = " \ | ||
git://github.com/ChristopherHX/github-act-runner.git;branch=main;protocol=https \ | ||
file://github-act-runner.service \ | ||
" | ||
|
||
LICENSE = "MIT" | ||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
|
||
inherit go-mod | ||
inherit systemd | ||
|
||
GO_IMPORT = "github.com/ChristopherHX/github-act-runner" | ||
|
||
RDEPENDS:${PN}:append = "nodejs" | ||
RDEPENDS:github-act-runner-dev:append = "make bash" | ||
|
||
SYSTEMD_SERVICE:${PN} = "github-act-runner.service" | ||
|
||
# This is required because the go build system fetches dependecies in the | ||
# compile stage. | ||
do_compile[network] = "1" | ||
|
||
do_install:append() { | ||
install -d ${D}${systemd_system_unitdir} | ||
install -m 0644 ${WORKDIR}/github-act-runner.service ${D}${systemd_system_unitdir}/ | ||
} |
3 changes: 3 additions & 0 deletions
3
meta-lxatac-software/recipes-devtools/github-act-runner/github-act-runner_0.6.7.bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
require github-act-runner.inc | ||
|
||
SRCREV = "2a2c5ff501cc894daaf4a333d829419802a9abca" |
11 changes: 11 additions & 0 deletions
11
meta-lxatac-software/recipes-devtools/gitlab-runner/files/gitlab-runner.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Unit] | ||
Description=Schedule GitLab actions to run on this TAC | ||
ConditionPathExists=/etc/gitlab-runner/config.toml | ||
|
||
[Service] | ||
Type=simple | ||
ExecStart=/usr/bin/gitlab-runner run | ||
WorkingDirectory=/srv | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
30 changes: 30 additions & 0 deletions
30
meta-lxatac-software/recipes-devtools/gitlab-runner/gitlab-runner.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
SUMMARY = "GitLab Runner" | ||
DESCRIPTION = "The Runner for GitLab Pipelines" | ||
|
||
LICENSE = "MIT" | ||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
|
||
SRC_URI:append = " file://gitlab-runner.service " | ||
|
||
GO_IMPORT = "gitlab.com/gitlab-org/gitlab-runner" | ||
GO_INSTALL = "${GO_IMPORT}" | ||
|
||
RDEPENDS:gitlab-runner-dev = "bash" | ||
|
||
inherit go-mod | ||
inherit systemd | ||
|
||
SYSTEMD_SERVICE:${PN} = "gitlab-runner.service" | ||
|
||
# This is required because the go build system fetches dependecies in the | ||
# compile stage. | ||
do_compile[network] = "1" | ||
|
||
# This is required to prevent build failures due to | ||
# "duplicated definition of symbol" errors. | ||
GO_LINKSHARED = "" | ||
|
||
do_install:append() { | ||
install -d ${D}${systemd_system_unitdir} | ||
install -m 0644 ${WORKDIR}/gitlab-runner.service ${D}${systemd_system_unitdir}/ | ||
} |
4 changes: 4 additions & 0 deletions
4
meta-lxatac-software/recipes-devtools/gitlab-runner/gitlab-runner_16.6.1.bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
require gitlab-runner.inc | ||
|
||
SRC_URI = "git://gitlab.com/gitlab-org/gitlab-runner.git;branch=16-6-stable;protocol=https" | ||
SRCREV = "f5da3c5adf55e55004e0dae2a2e1476f8407c087" |