Add custom Arch-based act_runner image, revert workflow workaround
The runner image is now built on archlinux:base-devel with git, curl, makepkg and a non-root builder user baked in. This removes the need for per-workflow pacman installs and enables host mode.
This commit is contained in:
parent
6b21b6d50c
commit
d4eec1c506
@ -12,9 +12,6 @@ jobs:
|
|||||||
update-pkgver:
|
update-pkgver:
|
||||||
runs-on: moonarch
|
runs-on: moonarch
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
|
||||||
run: pacman -Sy --noconfirm git
|
|
||||||
|
|
||||||
- name: Checkout source repo
|
- name: Checkout source repo
|
||||||
run: |
|
run: |
|
||||||
git clone --bare http://gitea:3000/nevaforget/moonarch.git source.git
|
git clone --bare http://gitea:3000/nevaforget/moonarch.git source.git
|
||||||
|
|||||||
7
ci/act-runner/Dockerfile
Normal file
7
ci/act-runner/Dockerfile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
FROM archlinux:base-devel
|
||||||
|
RUN pacman -Sy --noconfirm git curl && pacman -Scc --noconfirm && useradd -m builder && echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||||
|
ADD https://gitea.com/gitea/act_runner/releases/download/v0.3.1/act_runner-0.3.1-linux-amd64 /usr/local/bin/act_runner
|
||||||
|
RUN chmod +x /usr/local/bin/act_runner
|
||||||
|
COPY --from=gitea/act_runner:latest /usr/local/bin/run.sh /usr/local/bin/run.sh
|
||||||
|
ENV HOME=/root
|
||||||
|
ENTRYPOINT ["/usr/local/bin/run.sh"]
|
||||||
Loading…
x
Reference in New Issue
Block a user