feat: implement OrchestratorCI workflow with environment setup and droplet creation script
This commit is contained in:
23
.github/workflows/orchestratorci.yml
vendored
23
.github/workflows/orchestratorci.yml
vendored
@@ -6,22 +6,35 @@ on:
|
||||
spec:
|
||||
required: true
|
||||
type: string
|
||||
outputs:
|
||||
runner_id:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
secrets:
|
||||
DO_TOKEN:
|
||||
required: true
|
||||
|
||||
outputs:
|
||||
ready:
|
||||
description: "The result of the orchestrator job"
|
||||
value: ${{ jobs.provisioning.outputs.runner_id }} # Gunakan jobs
|
||||
value: ${{ jobs.provisioning.outputs.ready }} # Gunakan jobs
|
||||
|
||||
jobs:
|
||||
provisioning:
|
||||
runs-on: gitea-orchestrator
|
||||
name: OrchestratorCI Job
|
||||
outputs:
|
||||
runner_id: ${{ steps.provisioning.outputs.runner_id }} # Sesuaikan nama
|
||||
ready: ${{ steps.provisioning.outputs.ready }} # Sesuaikan nama
|
||||
steps:
|
||||
- name: Run OrchestratorCI
|
||||
id: provisioning
|
||||
container: digitalocean/doctl
|
||||
env:
|
||||
SPEC: ${{ inputs.spec }}
|
||||
RUNNER_ID: ${{ inputs.runner_id }}
|
||||
DO_TOKEN: ${{ secrets.DO_TOKEN }}
|
||||
run: |
|
||||
echo "Running OrchestratorCI with spec: ${{ inputs.spec }}"
|
||||
echo "Preparing Script..."
|
||||
# Placeholder for actual OrchestratorCI commands
|
||||
# Simulate a result output
|
||||
echo "runner_id=pandeganteng" >> $GITHUB_OUTPUT
|
||||
echo "ready=true" >> $GITHUB_OUTPUT
|
||||
Reference in New Issue
Block a user