{"id":13588097,"url":"https://github.com/gesellix/drone-stack","last_synced_at":"2025-07-02T04:37:05.828Z","repository":{"id":47481806,"uuid":"118428252","full_name":"gesellix/drone-stack","owner":"gesellix","description":"Example setup of Drone CI in a Docker Stack using Swarm mode","archived":false,"fork":false,"pushed_at":"2018-01-22T08:51:54.000Z","size":4,"stargazers_count":21,"open_issues_count":0,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T02:08:30.428Z","etag":null,"topics":["docker","docker-stack","drone-ci","swarm-mode"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gesellix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-22T08:28:45.000Z","updated_at":"2022-09-27T02:38:46.000Z","dependencies_parsed_at":"2022-08-30T23:42:06.515Z","dependency_job_id":null,"html_url":"https://github.com/gesellix/drone-stack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gesellix/drone-stack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gesellix%2Fdrone-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gesellix%2Fdrone-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gesellix%2Fdrone-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gesellix%2Fdrone-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gesellix","download_url":"https://codeload.github.com/gesellix/drone-stack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gesellix%2Fdrone-stack/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263076925,"owners_count":23410164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-stack","drone-ci","swarm-mode"],"created_at":"2024-08-01T15:06:30.534Z","updated_at":"2025-07-02T04:37:05.809Z","avatar_url":"https://github.com/gesellix.png","language":"Shell","funding_links":[],"categories":["Shell","Resources"],"sub_categories":["Tutorials"],"readme":"# Drone CI as Docker Stack (in Swarm mode)\n\nExample setup of [Drone CI](https://github.com/drone/drone) in a Docker Stack using Swarm mode.\n\n## Usage \n\nSimplest usage is by running the `deploy.sh` script after configuring the agent and server settings:\n\n    git clone https://github.com/gesellix/drone-stack\n    cd drone-stack\n    vi .server-env\n    vi .agent-env\n    ./deploy.sh\n\nThe script prepares a Docker volume for the Drone server's database and initializes your\nDocker engine in Swarm mode. Via `docker stack deploy` the complete stack with server and agents\nwill be deployed to your Docker engine.\n\nThe Drone CLI is also available as Docker image and can be used like this:\n\n    docker run --rm -it -e DRONE_SERVER=http://example.com:8000 -e DRONE_TOKEN=foo.bar.baz drone/cli info\n\n## Security notice about credentials/tokens\n\nBeware that your secrets are saved in `.agent-env` and `.server-env`.\nAfter [drone/#2223](https://github.com/drone/drone/issues/2223) being implemented,\nboth files (or parts of them) should be converted to Docker secrets.\n\n## GitHub integration\n\nFor the GitHub integration you'll need to create an OAuth App at https://github.com/settings/developers.\nThe _Homepage URL_ should point to your Drone server (e.g. http://example.com:8000),\nthe _Authorization callback URL_ should append `/authorize` (e.g. http://example.com:8000/authorize).\n\nDue to the initial OAuth flow, the Drone CI server needs to be publicly available at _example.com:8000_.\n\n## Contribution and feedback\n\nFeel free to [file an issue](https://github.com/gesellix/drone-stack/issues)\nor [create a pull request](https://github.com/gesellix/drone-stack/pulls) if you have questions or\nif you'd like to improve this example setup!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgesellix%2Fdrone-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgesellix%2Fdrone-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgesellix%2Fdrone-stack/lists"}