feat: service container in host mode (#95)

This commit is contained in:
ChristopherHX
2025-04-26 16:28:53 +02:00
committed by GitHub
parent a3c8116dee
commit 8536279ece
3 changed files with 129 additions and 82 deletions

View File

@@ -0,0 +1,24 @@
name: Self-Hosted Runner with NGINX Service
on: [push]
jobs:
nginx_service_job:
runs-on: self-hosted
services:
nginx:
image: nginx:latest
ports:
- 8084:80
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Wait for NGINX to be ready
run: |
for i in {1..10}; do
curl -I http://localhost:8084 && break || sleep 3
done
- name: Verify NGINX is running
run: curl -I http://localhost:8084