feat: add OrchestratorCI cleanup workflow and update main job structure

This commit is contained in:
2025-09-22 13:53:34 +08:00
parent f40759c2ad
commit d61c39e316
2 changed files with 30 additions and 10 deletions

View File

@@ -0,0 +1,16 @@
name: OrchestratorCI
on:
workflow_call:
inputs:
runner_id:
required: true
type: string
jobs:
provisioning:
runs-on: gitea-orchestrator
name: OrchestratorCI Cleanup Job
steps:
- name: Run OrchestratorCI
run: |
echo "Cleanup Sucess for runner_id: ${{ inputs.runner_id }}"

View File

@@ -7,18 +7,22 @@ on:
required: true
type: string
default: "x86"
outputs:
runner_id:
description: "The result of the orchestrator job"
value: ${{ steps.provisioning.outputs.runner_id }}
jobs:
main-job:
provisioning:
runs-on: gitea-orchestrator
name: OrchestratorCI Job
outputs:
result: ${{ steps.provisioning.outputs.result }}
steps:
- name: Provisioning
- name: Run OrchestratorCI
id: provisioning
run: |
echo "Provisioning with spec: ${{ inputs.spec }}"
post-job:
runs-on: gitea-orchestrator
needs: main-job
if: always()
steps:
- name: Cleanup
run: echo "Cleaning up resources"
echo "Running OrchestratorCI with spec: ${{ inputs.spec }}"
# Placeholder for actual OrchestratorCI commands
# Simulate a result output
echo "::set-output name=runner_id::pandeganteng"