Enhance act_runner setup with jq installation verification and systemd service configuration
All checks were successful
Deploy ACT Runner Installer / deploy (push) Successful in 24s

This commit is contained in:
2025-08-11 12:01:29 +07:00
parent 942f1949ac
commit 2eef88250c
3 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
name: Deploy ACT Runner Installer
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
runs-on: debian-12-host
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup and deploy
run: |
mkdir -p ${{ env.HOME }}/${{ gitea.repository }}
cp -r . ${{ env.HOME }}/${{ gitea.repository }}
cd ${{ env.HOME }}/${{ gitea.repository }}
docker compose down --remove-orphans
docker compose up -d --build --force-recreate

14
docker-compose.yml Normal file
View File

@@ -0,0 +1,14 @@
version: "3.9"
services:
installer:
image: nginx:alpine
container_name: act-runner-installer
restart: unless-stopped
ports:
- "${PORT:-1234}:80"
volumes:
- ./install.sh:/usr/share/nginx/html/install.sh:ro
# Optional: expose README too
- ./README.md:/usr/share/nginx/html/README.md:ro
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro

20
nginx.conf Normal file
View File

@@ -0,0 +1,20 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index install.sh;
# Serve the installer at the root path
location = / {
try_files /install.sh =404;
default_type text/plain;
}
# Ensure install.sh is served as text
location = /install.sh {
default_type text/plain;
}
}