Drone comes with built-in support for the latest stable version of Gogs. To enable Gogs you should configure the Drone container using the following environment variables:
version: '2'
services:
drone-server:
image: drone/drone:0.8
ports:
- 80:8000
- 9000
volumes:
- /var/lib/drone:/var/lib/drone/
restart: always
environment:
- DRONE_OPEN=true
- DRONE_HOST=${DRONE_HOST}
+ - DRONE_GOGS=true
+ - DRONE_GOGS_URL=http://gogs.mycompany.com
- DRONE_SECRET=${DRONE_SECRET}
drone-agent:
image: drone/agent:0.8
restart: always
depends_on:
- drone-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_SERVER=drone-server:9000
- DRONE_SECRET=${DRONE_SECRET}
Authentication
Drone will prompt you for a username and password to authenticate. You should use your Gogs username and password. This is unfortunately required due to Gogs lack of oauth2 support.
Configuration
This is a full list of configuration options. Please note that many of these options use default configuration values that should work for the majority of installations.
- DRONE_GOGS=true
- Set to true to enable the Gogs driver.
- DRONE_GOGS_URL
- Gogs server address.
- DRONE_GOGS_GIT_USERNAME
- Optional. Use a single machine account username to clone all repositories.
- DRONE_GOGS_GIT_PASSWORD
- Optional. Use a single machine account password to clone all repositories.
- DRONE_GOGS_PRIVATE_MODE=false
- Set to true if Gogs is running in private mode.
- DRONE_GOGS_SKIP_VERIFY=false
- Set to true to disable SSL verification.
Is there a mistake on this page? Please let us know or edit this page.