In my previos post I wrote how to configure self-hosted development server. Recently I need configure Drone CI for working with Odoo, and this task wasn’t simple. I decide create note about id, that don’t forget detail.
Drone config file
.drone.yml will be next:
workspace: base: /mnt path: extra-addons pipeline: build: image: kuznetsovin/drone-odoo commands: - sleep 60 - odoo -d sport_event --db_host postgres -r odoo -w odoo -i sport_event --stop-after-init services: postgres: image: postgres:10 environment: - POSTGRES_USER=odoo - POSTGRES_PASSWORD=odoo clone: git: image: plugins/git depth: 50 environment: - DRONE_NETRC_MACHINE=<git_server_address> - DRONE_NETRC_USERNAME=<user_key_from_droneci_db> - DRONE_NETRC_PASSWORD=x-oauth-basic
I created new Odoo docker images, because Drone can working with containers, which internal services running from root user. Besides section
clone was added for working with Gogs private repos.