{"id":17217157,"url":"https://github.com/akhenakh/drone-waiton","last_synced_at":"2026-01-06T02:10:48.259Z","repository":{"id":143101839,"uuid":"269253982","full_name":"akhenakh/drone-waiton","owner":"akhenakh","description":"A drone plugin to wait on services availability","archived":false,"fork":false,"pushed_at":"2022-06-08T00:48:16.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T12:46:54.532Z","etag":null,"topics":["cicd","drone","drone-ci","drone-plugin"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akhenakh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-04T03:43:57.000Z","updated_at":"2023-04-22T09:16:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"e4350efe-b218-4873-8234-afc9e37b103c","html_url":"https://github.com/akhenakh/drone-waiton","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhenakh%2Fdrone-waiton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhenakh%2Fdrone-waiton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhenakh%2Fdrone-waiton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhenakh%2Fdrone-waiton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akhenakh","download_url":"https://codeload.github.com/akhenakh/drone-waiton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245475038,"owners_count":20621518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cicd","drone","drone-ci","drone-plugin"],"created_at":"2024-10-15T03:43:25.369Z","updated_at":"2026-01-06T02:10:48.217Z","avatar_url":"https://github.com/akhenakh.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drone-waiton\n\nA drone plugin to wait for external hosts to be available, useful for CI when waiting on a service.\n\nIn this example pipeline, we spawn a redis service, ask waiton to test for redis avaibility, and then do our work in a task depending on waiton.\n\n```yaml\nkind: pipeline\n\nsteps:\n- name: waiton\n  image: akhenakh/drone-waiton:1.0\n  settings:\n    globaltimeout: 30s\n    urls:\n    - tcp://cache:6379\n\n- name: service-ready\n  image: busybox\n  commands:\n  - echo \"redis ready\"\n  depends_on:\n  - waiton\n\nservices:\n- name: cache\n  image: redis\n  ports:\n  - 6379\n```\n\n## Settings\n\n\n### `urls`\n\n_**type**_ `[]string`\n\n_**default**_ `''`\n\n_**description**_ List of URLs to test, supported schema are `http://`, `https://` and `tcp://`.\n\n_**example**_\n\n```yaml\n# .drone.yml\n\nkind: pipeline\n\nsteps:\n- name: waiton\n  image: akhenakh/drone-waiton\n  settings:\n    urls:\n    - http://www.google.com\n    - http://httpbin.org/delay/5\n```\n\n### `globaltimeout`\n\n_**type**_ `string`\n\n_**default**_ `'1m'`\n\n_**description**_ Duration before a timeout error is returned, if tests are not completed yet. \n\n_**note**_ Duration can be expressed in minute `m`, seconds `s` ...\n\n_**example**_\n\n```yaml\n# .drone.yml\n# this pipeline will fail because the url will return in 5s but the globaltimeout is set to 3s\n\nkind: pipeline\n\nsteps:\n- name: waiton\n  image: akhenakh/drone-waiton\n  settings:\n    globaltimeout: 3s\n    urls:\n    - http://httpbin.org/delay/5\n```\n\n### `urltimeout`\n\n_**type**_ `string`\n\n_**default**_ `'10s'`\n\n_**description**_ Duration before timeouting a single request and retrying. \n\n_**note**_ Duration can be expressed in minute `m`, seconds `s` ...\n\n_**example**_\n\n```yaml\n# .drone.yml\n\nkind: pipeline\n\nsteps:\n- name: waiton\n  image: akhenakh/drone-waiton\n  settings:\n    urltimeout: 3s\n    urls:\n    - http://httpbin.org/delay/2\n```\n\n### `maxretries`\n\n_**type**_ `int`\n\n_**default**_ `'100'`\n\n_**description**_ Number of retries before failing. \n\n_**example**_\n\n```yaml\n# .drone.yml\n\nkind: pipeline\n\nsteps:\n- name: waiton\n  image: akhenakh/drone-waiton\n  settings:\n    urltimeout: 1m\n    maxretries: 10\n    urls:\n    - http://httpbin.org/delay/2\n```\n\n\n## Details\n\nThe waiton docker image is 4.2MB compressed, based on a distroless image with a simple [Go program](https://github.com/akhenakh/waiton).\n\nFor HTTP \u0026 TCP, waiton wll retry every 1s as a backoff strategy.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakhenakh%2Fdrone-waiton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakhenakh%2Fdrone-waiton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakhenakh%2Fdrone-waiton/lists"}