diff --git a/.github/workflows/orchestratorci-cleanup.yml b/.github/workflows/orchestratorci-cleanup.yml new file mode 100644 index 0000000..9c81eaf --- /dev/null +++ b/.github/workflows/orchestratorci-cleanup.yml @@ -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 }}" \ No newline at end of file diff --git a/.github/workflows/orchestratorci.yml b/.github/workflows/orchestratorci.yml index a6b020e..5fe6117 100644 --- a/.github/workflows/orchestratorci.yml +++ b/.github/workflows/orchestratorci.yml @@ -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" \ No newline at end of file + echo "Running OrchestratorCI with spec: ${{ inputs.spec }}" + # Placeholder for actual OrchestratorCI commands + # Simulate a result output + echo "::set-output name=runner_id::pandeganteng" \ No newline at end of file