reload primary then secondary
Some checks are pending
Reload Act Runner Stack to clear cache for workflows / reload-secondary (push) Blocked by required conditions
Reload Act Runner Stack to clear cache for workflows / diff (push) Successful in 1m25s
Reload Act Runner Stack to clear cache for workflows / reload-primary (push) Successful in 58s
Some checks are pending
Reload Act Runner Stack to clear cache for workflows / reload-secondary (push) Blocked by required conditions
Reload Act Runner Stack to clear cache for workflows / diff (push) Successful in 1m25s
Reload Act Runner Stack to clear cache for workflows / reload-primary (push) Successful in 58s
This commit is contained in:
parent
bce61b13bd
commit
615f6f576f
@ -11,10 +11,15 @@ on:
|
||||
required: false
|
||||
type: boolean
|
||||
default: false
|
||||
runs_on_label:
|
||||
description: The runner label to execute this workflow on.
|
||||
required: false
|
||||
type: string
|
||||
default: ubuntu-22.04
|
||||
|
||||
jobs:
|
||||
deploy-gitainer:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ${{ inputs.runs_on_label }}
|
||||
steps:
|
||||
- name: Check status step
|
||||
id: check-step
|
||||
|
||||
@ -10,12 +10,20 @@ jobs:
|
||||
with:
|
||||
files: .gitea/**
|
||||
|
||||
deploy-gitainer:
|
||||
reload-primary:
|
||||
needs: diff
|
||||
if: ${{ needs.diff.outputs.is_changed == 'true' }}
|
||||
continue-on-error: true
|
||||
uses: martin/chromart-gitea-actions/.gitea/workflows/gitainer-deploy.yaml@main
|
||||
with:
|
||||
stack_name: gitea_act_runner
|
||||
# use this because this action kills the runner
|
||||
delayed_silent: true
|
||||
# the secondary runner executes the primary restart webhook
|
||||
runs_on_label: runner-secondary
|
||||
|
||||
reload-secondary:
|
||||
needs: reload-primary
|
||||
# ensuring the primary actually survived and restarted successfully
|
||||
uses: martin/chromart-gitea-actions/.gitea/workflows/gitainer-deploy.yaml@main
|
||||
with:
|
||||
stack_name: gitea_act_runner_secondary
|
||||
# the primary runner executes the secondary restart webhook
|
||||
runs_on_label: runner-primary
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user