feat: add orchestrator scripts and Docker setup for droplet management; include SSH key handling and environment configuration

This commit is contained in:
2025-09-23 15:25:56 +08:00
parent 975035a54a
commit f4c7a98b6a
7 changed files with 214 additions and 8 deletions

View File

@@ -13,11 +13,19 @@ on:
secrets:
DO_TOKEN:
required: true
SSH_PRIVATE_KEY_DECODED:
required: true
outputs:
ready:
description: "The result of the orchestrator job"
value: ${{ jobs.provisioning.outputs.ready }} # Gunakan jobs
droplet_id:
description: "The ID of the created droplet"
value: ${{ jobs.provisioning.outputs.droplet_id }}
droplet_ip:
description: "The IP address of the created droplet"
value: ${{ jobs.provisioning.outputs.droplet_ip }}
jobs:
provisioning:
@@ -28,13 +36,11 @@ jobs:
steps:
- name: Run OrchestratorCI
id: provisioning
container: digitalocean/doctl
container: registry.btwazure.com/orchestrator/app:latest
env:
SPEC: ${{ inputs.spec }}
RUNNER_ID: ${{ inputs.runner_id }}
DO_TOKEN: ${{ secrets.DO_TOKEN }}
SSH_PRIVATE_KEY_DECODED: ${{ secrets.SSH_PRIVATE_KEY_DECODED }}
run: |
echo "Preparing Script..."
# Placeholder for actual OrchestratorCI commands
# Simulate a result output
echo "ready=true" >> $GITHUB_OUTPUT
./orchestrating.sh