Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a feature for Drone runner to execute single pipeline only (and shutdown) #1

Open
theanurin opened this issue Aug 19, 2024 · 2 comments
Assignees

Comments

@theanurin
Copy link
Owner

theanurin commented Aug 19, 2024

Make a feature for Drone runner to execute single pipeline only (and shutdown)

Notes

Connect runner to Drone CI server

Follow installation guide https://docs.drone.io/runner/exec/overview/ to obtain binaries or build yourself from sources.
!!!DO NOT INSTALL AS SERVICE!!!

DRONE_RPC_SECRET=...
LABEL_ROLE=...

cat <<EOF > "drone-runner-${LABEL_ROLE}.env"
DRONE_RPC_PROTO="https"
DRONE_RPC_HOST="drone.infra.zxteam.net"
DRONE_RPC_SECRET="${DRONE_RPC_SECRET}"
DRONE_RUNNER_CAPACITY="1"
DRONE_HTTP_BIND="-1"
DRONE_UI_DISABLE="true"
DRONE_RUNNER_LABELS="role:${LABEL_ROLE}"
EOF

./drone-runner-exec daemon "drone-runner-${LABEL_ROLE}.env"
@theanurin
Copy link
Owner Author

Similar feature woodpecker-ci/woodpecker#4019

@theanurin
Copy link
Owner Author

theanurin commented Aug 19, 2024

@theanurin theanurin self-assigned this Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant