DroneCI and Gitea in Docker.
P.S. replace all
IP_ADDRESS
by your IP of machine!
Config boot.sh
by instructions in it.
Now boot the stack:
bash boot.sh
-
Go to
http://IP_ADDRESS:3000
and configure Gitea. DONT FORGET - press THIS button (otherwise the Drone will not be able to communicate with Gitea): -
Register and login into Gitea.
-
Head over to:
http://IP_ADDRESS:3000/user/settings/applications
and create a new OAuth2 Application and set the Redirect URI tohttp://IP_ADDRESS:3001/login
like this: -
Copy the client id and client secret (WARNING: you won't get a chance to see them again), save settings and paste id and secret to the
boot.sh
inDRONE_GITEA_CLIENT_ID
andDRONE_GITEA_CLIENT_SECRET
and runbash boot.sh
again. This will give drone the correct credentials in order to authenticate with Gitea. -
Now when you head over to
http://IP_ADDRESS:3001/
and press "Continue" button. -
You will be asked to authorize the application and you should be able to access drone. Press button with title like "Authorize":
-
Then register in Drone (Fear not, this is a local account!):
-
Create a test repo in Gitea.
-
Commit a
.drone.yml
file for Drone with contents from.drone-example.yml
. -
Head over to Drone admin panel and sync your repositories:
-
Activate your repository:
-
Push a commit to master and see your pipeline running:
-
Install Drone CLI (https://docs.drone.io/cli/install/).
-
Get your Drone Token on
http://${IP_ADDRESS}:3001/account
. -
Run commands:
export DRONE_SERVER=http://IP_ADDRESS:3001 export DRONE_TOKEN=Token from step 2 drone info
- https://github.com/ruanbekker/drone-ci-testing
- https://github.com/ruanbekker/drone-demo-python-flask
- https://github.com/ruanbekker/drone-with-go
- https://github.com/ruanbekker/demo-drone-mongodb-tests
- https://github.com/ruanbekker/drone-multi-pipeline
- https://github.com/ruanbekker/docker-jekyll-drone
- Localstack with Drone and Gitea
- Drone, Minio, Gitea, Sqlite on Docker Compose