fix: exclude github-runner from dc up -d to avoid self-kill during deploy
This commit is contained in:
@@ -23,7 +23,10 @@ jobs:
|
||||
- name: Pull and apply compose
|
||||
run: |
|
||||
$COMPOSE pull
|
||||
$COMPOSE up -d
|
||||
# Exclude github-runner from up -d — recreating the container that
|
||||
# is running this job would kill the workflow mid-step.
|
||||
SERVICES=$($COMPOSE config --services | grep -v '^github-runner$' | tr '\n' ' ')
|
||||
$COMPOSE up -d $SERVICES
|
||||
|
||||
- name: Reload Caddyfile
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user