feat: add orchestrator scripts and Docker setup for droplet management; include SSH key handling and environment configuration
This commit is contained in:
16
.github/workflows/orchestratorci.yml
vendored
16
.github/workflows/orchestratorci.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user