mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-26 18:20:59 +00:00
ci: Run rc-status default explicitly
This commit is contained in:
parent
e4ea35118f
commit
bf8070af87
1 changed files with 2 additions and 1 deletions
3
.github/workflows/windows-tests.yml
vendored
3
.github/workflows/windows-tests.yml
vendored
|
@ -49,6 +49,7 @@ jobs:
|
||||||
mkdir -p /run/openrc
|
mkdir -p /run/openrc
|
||||||
touch /run/openrc/softlevel
|
touch /run/openrc/softlevel
|
||||||
|
|
||||||
|
rc-status default
|
||||||
# Check if Docker is already in the default runlevel before adding it
|
# Check if Docker is already in the default runlevel before adding it
|
||||||
#if ! rc-status default | grep -q "docker"; then
|
#if ! rc-status default | grep -q "docker"; then
|
||||||
echo "Adding Docker service..."
|
echo "Adding Docker service..."
|
||||||
|
@ -56,7 +57,7 @@ jobs:
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
# Check Docker service status
|
# Check Docker service status
|
||||||
docker_status=$(rc-service docker status 2>&1 || echo "not running")
|
# docker_status=$(rc-service docker status 2>&1 || echo "not running")
|
||||||
|
|
||||||
# Start Docker only if it's not already running or starting
|
# Start Docker only if it's not already running or starting
|
||||||
#if echo "$docker_status" | grep -q "not running"; then
|
#if echo "$docker_status" | grep -q "not running"; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue