https://github.com/mizzy/drone-playground
https://github.com/mizzy/drone-playground
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mizzy/drone-playground
- Owner: mizzy
- Created: 2019-04-14T05:09:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-14T07:40:36.000Z (about 7 years ago)
- Last Synced: 2025-03-23T01:42:35.885Z (over 1 year ago)
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Drone playground
## References
- [Drone CI – Automate Software Testing and Delivery](https://drone.io/)
- [Kubernetes](https://docs.drone.io/installation/github/kubernetes/)
- [User Guide](https://docs.drone.io/user-guide/)
## Prerequisite
To use `envsubst`, you must install `gettext`.
```
$ brew install gettext
$ brew link --force gettext
```
Create an oAuth App on GitHub according to [Kubernetes](https://docs.drone.io/installation/github/kubernetes/).
Set environment variables.
```
export DRONE_GITHUB_CLIENT_ID=xxxxx
export DRONE_GITHUB_CLIENT_SECRET=xxxxx
export DRONE_RPC_SECRET=xxxxx
export DRONE_SERVER_HOST=xxxxx
```
## Setup the Drone on Kubernetes
```
$ kubectl create ns drone
$ kubens drone
$ envsubst < drone.yaml | kubectl apply -f -
$ kubectl apply -f drone-rbac.yml
$ kubectl port-forward deployment/drone 8080:80
```