feat: add OrchestratorCI cleanup workflow and update main job structure
This commit is contained in:
16
.github/workflows/orchestratorci-cleanup.yml
vendored
Normal file
16
.github/workflows/orchestratorci-cleanup.yml
vendored
Normal 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 }}"
|
||||
24
.github/workflows/orchestratorci.yml
vendored
24
.github/workflows/orchestratorci.yml
vendored
@@ -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"
|
||||
Reference in New Issue
Block a user