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