Hi All,
since i’m googling around and could not find the solution by myself, i’m posting here my setup and the problem i’m facing.
I’m runing drone and dronte-agent on my Synology DS620slim. Container works fine. Here my docker-compose setup:
Hey there, I see problems with both of the yaml files that you have posted. The first yaml you posted uses syntax that is only supported by Drone version 0.8 and below which is a few years old and is end of life (are you using Drone 0.8 ?). The second yaml you posted uses syntax that is compatible with Drone version 1.x and higher, however, the “build” attribute is not a valid attribute.
Hi, thank you for the fast help!
No, I’m using the latest Drone and Agent images from dockerhub.
I’ve tried various yaml config and i’m new to the whole CI pipelining commands. How should look the .drone.yml for creating a docker image from a Dockerfile on Gitea repo?
repo file structure:
¦- Dockerfile
¦-.drone.yml
¦-index.html
¦-…
Please post the full error you get. Did you set your repository to trusted (which is required for doid and priviliged builds; understand the security risks if you set it to trusted, ie anyone with access to the repo can wipe your disk).
If you have a registry, you can build the docker containers using the docker plugin, which does not need to be run in trusted mode (which is much safer). Having a registry will also help you deploy your containers in later steps. This is the full drone file we use for our containers:
Nice to hear!
Just FYI, the error you got previously was indeed telling you that your repository was not set to trusted, which is required for DOID. Anyway, I think the new setup is better.