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
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
runs_on_label:
|
||||||
|
description: The runner label to execute this workflow on.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: ubuntu-22.04
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-gitainer:
|
deploy-gitainer:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ${{ inputs.runs_on_label }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check status step
|
- name: Check status step
|
||||||
id: check-step
|
id: check-step
|
||||||
|
|||||||
@ -10,12 +10,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
files: .gitea/**
|
files: .gitea/**
|
||||||
|
|
||||||
deploy-gitainer:
|
reload-primary:
|
||||||
needs: diff
|
needs: diff
|
||||||
if: ${{ needs.diff.outputs.is_changed == 'true' }}
|
if: ${{ needs.diff.outputs.is_changed == 'true' }}
|
||||||
continue-on-error: true
|
|
||||||
uses: martin/chromart-gitea-actions/.gitea/workflows/gitainer-deploy.yaml@main
|
uses: martin/chromart-gitea-actions/.gitea/workflows/gitainer-deploy.yaml@main
|
||||||
with:
|
with:
|
||||||
stack_name: gitea_act_runner
|
stack_name: gitea_act_runner
|
||||||
# use this because this action kills the runner
|
# the secondary runner executes the primary restart webhook
|
||||||
delayed_silent: true
|
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