Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Example setup of Drone CI in a Docker Stack using Swarm mode

License

NotificationsYou must be signed in to change notification settings

gesellix/drone-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example setup ofDrone CI in a Docker Stack using Swarm mode.

Usage

Simplest usage is by running thedeploy.sh script after configuring the agent and server settings:

git clone https://github.com/gesellix/drone-stackcd drone-stackvi .server-envvi .agent-env./deploy.sh

The script prepares a Docker volume for the Drone server's database and initializes yourDocker engine in Swarm mode. Viadocker stack deploy the complete stack with server and agentswill be deployed to your Docker engine.

The Drone CLI is also available as Docker image and can be used like this:

docker run --rm -it -e DRONE_SERVER=http://example.com:8000 -e DRONE_TOKEN=foo.bar.baz drone/cli info

Security notice about credentials/tokens

Beware that your secrets are saved in.agent-env and.server-env.Afterdrone/#2223 being implemented,both files (or parts of them) should be converted to Docker secrets.

GitHub integration

For the GitHub integration you'll need to create an OAuth App athttps://github.com/settings/developers.TheHomepage URL should point to your Drone server (e.g.http://example.com:8000),theAuthorization callback URL should append/authorize (e.g.http://example.com:8000/authorize).

Due to the initial OAuth flow, the Drone CI server needs to be publicly available atexample.com:8000.

Contribution and feedback

Feel free tofile an issueorcreate a pull request if you have questions orif you'd like to improve this example setup!

About

Example setup of Drone CI in a Docker Stack using Swarm mode

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp