Skip to content

Instantly share code, notes, and snippets.

@owenhsieh
Last active November 24, 2017 10:41
Show Gist options
  • Save owenhsieh/784e9919f2af74c293ffd3e521d00aed to your computer and use it in GitHub Desktop.
Save owenhsieh/784e9919f2af74c293ffd3e521d00aed to your computer and use it in GitHub Desktop.
quick tip for droneci

quick tip for droneci

${DRONE_HOST} is not for Drone itself.

Drone will put ${DRONE_HOST} to git server. Git server needs to know where your host is to trigger Drone.

It's confusing when running Drone and git server locally.

You would probably instantly type localhost:<port> and nothing happens. (using gitea)

Drone basically does this

  1. Parse webhook content (basically a json that contains quite a lot info)
  2. Check if .drone.yml exists in branch.
  3. Possibly run docker run -d [options?] <image> /bin/sh -c "commands"

In the end it checks each docker exit code, store it and display on UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment