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
|
type: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build plugin for test
|
- name: release plugin
|
||||||
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
|
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
repo: plugins/drone-diagnostics
|
repo: plugins/drone-diagnostics
|
||||||
@@ -42,7 +13,3 @@ steps:
|
|||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# drone-diagnostics
|
# 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
|
## Usage
|
||||||
|
|
||||||
@@ -10,6 +10,7 @@ Installed tools:
|
|||||||
|
|
||||||
- ping
|
- ping
|
||||||
- traceroute
|
- traceroute
|
||||||
|
- dig
|
||||||
|
|
||||||
### Example 1
|
### Example 1
|
||||||
|
|
||||||
@@ -30,6 +31,7 @@ steps:
|
|||||||
- env
|
- env
|
||||||
- ping www.github.com -w 5
|
- ping www.github.com -w 5
|
||||||
- traceroute -T -p 443 www.github.com
|
- traceroute -T -p 443 www.github.com
|
||||||
|
- dig www.apple.com
|
||||||
- echo "end of test"
|
- echo "end of test"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu
|
FROM ubuntu
|
||||||
RUN apt-get update
|
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
|
ENTRYPOINT /bin/bash
|
||||||
|
|||||||
Reference in New Issue
Block a user