feat: refactor .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing

* fix yaml indentation
This commit is contained in:
surtur 2021-01-14 01:44:45 +01:00
parent b242a85230
commit 4e18bba4ac
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -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