drone.io

Drone.io build locally without pushing to the repo

对着背影说爱祢 提交于 2019-12-14 02:12:19
问题 io team and lovers. I tested Drone.io in a locally way and I like it. Is there a way to use Drone.io locally without pushing to a repository?. I would like to use it on developer environments, that means the developers can test their code before pushing to the repository. It's possible to do that? 回答1: You can run: drone exec It requires the drone cli tools. 回答2: Though you can run drone exec to run the build locally it does not make sense to do so and not having a CI server. The nature of a

Building privately-hosted base image [drone.io]

天大地大妈咪最大 提交于 2019-12-13 03:46:59
问题 I am trying to deploy a web service using Drone and the docker plugin. My image takes about an hour to build, due to a number of large dependencies. To speed up build times, I would like to place a number of my service's dependencies (that are not going to change often) in a base image, and just build my actual code (a python flask app) on top of this base when deploying. I am hosting the base image in a private repository, with the following line in my Dockerfile: FROM: my_private_repo.com

Gogs + Drone getsockopt: connection refused

孤者浪人 提交于 2019-12-11 05:08:25
问题 In the Gogs/webhooks interface when i click the test delivery button i got this error; Delivery: Post http://localhost:8000/hook?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZXh0IjoidG9tL2Ryb255IiwidHlwZSI6Imhvb2sifQ.UZdOVW2IdiDcLQzKcnlmlAxkuA8GTZBH634G0K7rggI: dial tcp [::1]:8000: getsockopt: connection refused This is my docker-compose.yml file version: '2' services: gogs: image: gogs/gogs ports: - 3000:3000 - 22:22 links: - mysql mysql: image: mysql expose: - 3306 environment: -

how to create a drone secret file?

喜夏-厌秋 提交于 2019-12-05 00:48:01
问题 the docs show how to set a file to a secret envvar http://readme.drone.io/0.5/secrets/ is there a convenient way to do the opposite? e.g. have this ssh key be available in .ssh/id_rsa with all the correct permissions. And by "convienient" I obviously mean without having to type mkdir , > or chmod 回答1: If you want to use an ssh key as part of your build, you can add the ssh key to the secret store using the following command: drone secrets add --image=<image> <repo> SSH_KEY @/path/to/.ssh/id

how to create a drone secret file?

余生颓废 提交于 2019-12-03 15:41:57
the docs show how to set a file to a secret envvar http://readme.drone.io/0.5/secrets/ is there a convenient way to do the opposite? e.g. have this ssh key be available in .ssh/id_rsa with all the correct permissions. And by "convienient" I obviously mean without having to type mkdir , > or chmod Brad Rydzewski If you want to use an ssh key as part of your build, you can add the ssh key to the secret store using the following command: drone secrets add --image=<image> <repo> SSH_KEY @/path/to/.ssh/id_rsa Note that the @ notation is similar to curl. The reason this feature exists is because