This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
services/drone/server
Simon 62a5159232 chore(Drone): Upgrade to 2.11.1
https://github.com/harness/drone/releases/tag/v2.11.1
2022-04-13 22:58:18 +02:00
..
.env feat(Drone): Add more configuration and split it 2022-01-26 10:53:11 +01:00
README.md feat(Drone): Add more configuration and split it 2022-01-26 10:53:11 +01:00
docker-compose.cookie.yml feat(Drone): Add more configuration and split it 2022-01-26 10:53:11 +01:00
docker-compose.gitea.yml feat(Drone): Add more configuration and split it 2022-01-26 10:53:11 +01:00
docker-compose.header.yml feat(Drone): Add more configuration and split it 2022-01-26 10:53:11 +01:00
docker-compose.local.yml feat(Drone): Add more configuration and split it 2022-01-26 10:53:11 +01:00
docker-compose.logging.yml feat(Drone): Add more configuration and split it 2022-01-26 10:53:11 +01:00
docker-compose.postgres.yml feat(Drone): Add more configuration and split it 2022-01-26 10:53:11 +01:00
docker-compose.traefik.yml feat(Drone): Add more configuration and split it 2022-01-26 10:53:11 +01:00
docker-compose.user.yml feat(Drone): Add more configuration and split it 2022-01-26 10:53:11 +01:00
docker-compose.yml chore(Drone): Upgrade to 2.11.1 2022-04-13 22:58:18 +02:00

README.md

Drone CI Server

Installation

L'installation de la partie serveur a été coupée en plusieurs fichiers dont les noms sont assez explicites. De nombreux liens vers la documentation officielle ont été mis dans les fichiers Docker Compose.

Configuration

Une fois un Drone installé il faut le configurer avec l'utilisation du CLI.

Installation du CLI

Voir la documentation officielle.

Configuration du CLI en local

Il faut :

  • l'url de l'instance (DRONE_SERVER_HOST)
  • le protocol de l'instance (DRONE_SERVER_PROTO)
  • le token de l'administrateur (DRONE_ADMIN_TOKEN)
export DRONE_SERVER=${DRONE_SERVER_PROTO}://${DRONE_SERVER_HOST}
export DRONE_TOKEN=${DRONE_ADMIN_TOKEN}

Documentation officielle

Les utilisateurs

Il faut ajouter les utilisateurs non admin :

drone user add kosssi
drone user add killian
drone user add prometheus --machine --token=${PROMETHEUS_TOKEN}

En n'oubliant pas au moment de l'installation d'identifier précisément les utilisateurs ayant le droit d'exécuter Drone avec la variable DRONE_USER_FILTER=kosssi,killian,prometheus,${DRONE_ADMIN_USER}

Documentation officielle