feat: refactor .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
* fix yaml indentation
This commit is contained in:
parent
b242a85230
commit
4e18bba4ac
21
.drone.yml
21
.drone.yml
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
name: dockerhub-build-trigger
|
name: dockerhub-build-trigger
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
@ -9,13 +10,6 @@ platform:
|
|||||||
clone:
|
clone:
|
||||||
disable: true
|
disable: true
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
- cron
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: call webhook
|
- name: call webhook
|
||||||
pull: always
|
pull: always
|
||||||
@ -24,6 +18,13 @@ steps:
|
|||||||
ENDPOINT:
|
ENDPOINT:
|
||||||
from_secret: DOCKERHUB_ENDPOINT
|
from_secret: DOCKERHUB_ENDPOINT
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache curl
|
- apk add --no-cache curl
|
||||||
- curl -sO https://git.dotya.ml/${DRONE_REPO}/raw/branch/master/curl.it
|
- curl -sO https://git.dotya.ml/${DRONE_REPO}/raw/branch/master/curl.it
|
||||||
- bash ./curl.it $ENDPOINT
|
- bash ./curl.it $ENDPOINT
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- cron
|
||||||
|
Loading…
Reference in New Issue
Block a user