mirror of
https://github.com/drone-plugins/drone-diagnostics.git
synced 2026-06-16 14:49:36 +08:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6663810601 | |||
| 6532d72d4e | |||
| bc93724b2f | |||
| 2d6f59fe2f | |||
| 724e37a70a | |||
| 9fabe07502 |
+1
-34
@@ -3,36 +3,7 @@ name: default
|
||||
type: docker
|
||||
|
||||
steps:
|
||||
- name: build plugin for test
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: plugins/drone-diagnostics
|
||||
dockerfile: docker/Dockerfile
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
tags: ${DRONE_COMMIT}
|
||||
- name: run plugins/drone-diagnostics plugin
|
||||
image: plugins/drone-diagnostics:${DRONE_COMMIT}
|
||||
commands:
|
||||
- env
|
||||
- ping www.github.com -w 5
|
||||
- traceroute -T -p 443 www.github.com
|
||||
- echo "end of test"
|
||||
|
||||
trigger:
|
||||
event:
|
||||
exclude:
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: publish
|
||||
type: docker
|
||||
|
||||
steps:
|
||||
- name: build plugin for test
|
||||
- name: release plugin
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: plugins/drone-diagnostics
|
||||
@@ -42,7 +13,3 @@ steps:
|
||||
password:
|
||||
from_secret: docker_password
|
||||
auto_tag: true
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# drone-diagnostics
|
||||
|
||||
A plugin with cli tools to diagnose issues in a build.
|
||||
A plugin with cli tools to diagnose issues in a build. Available here `https://hub.docker.com/r/plugins/drone-diagnostics`
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -10,6 +10,7 @@ Installed tools:
|
||||
|
||||
- ping
|
||||
- traceroute
|
||||
- dig
|
||||
|
||||
### Example 1
|
||||
|
||||
@@ -30,6 +31,7 @@ steps:
|
||||
- env
|
||||
- ping www.github.com -w 5
|
||||
- traceroute -T -p 443 www.github.com
|
||||
- dig www.apple.com
|
||||
- echo "end of test"
|
||||
```
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM ubuntu
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y traceroute iputils-ping
|
||||
RUN apt-get install -y traceroute iputils-ping bind9-dnsutils
|
||||
ENTRYPOINT /bin/bash
|
||||
|
||||
Reference in New Issue
Block a user