fix: yaml help is on it's way
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
surtur 2020-06-03 22:58:30 +02:00
parent 786c2cacb7
commit 7fb4c268f5
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 15 additions and 5 deletions

@ -25,12 +25,14 @@ trigger:
steps:
- name: call webhook
pull: always
image: curlimages/curl:latest
image: bash:latest
environment:
ENDPOINT:
from_secret: dockerhub_endpoint
commands:
- curl -H "Content-Type: application/json" --data '{"docker_tag": "latest"}' -X POST $ENDPOINT
- apk add --no-cache curl
- curl -sO https://git.dotya.ml/wanderer/docker-archlinux-rf/raw/branch/master/curl.it
- ./curl.it $ENDPOINT
---
@ -56,13 +58,14 @@ trigger:
steps:
- name: call webhook
pull: always
image: curlimages/curl:latest
image: bash:latest
environment:
ENDPOINT:
from_secret: dockerhub_endpoint_nightly
commands:
-
"curl -H 'Content-Type:application/json' --data '{\"docker_tag\":\"nightly\"}' -X POST $ENDPOINT"
- apk add --no-cache curl
- curl -sO https://git.dotya.ml/wanderer/docker-archlinux-rf/raw/branch/master/curl.it
- ./curl.it -n $ENDPOINT
---

7
curl.it Executable file

@ -0,0 +1,7 @@
#!/bin/bash
if [ $# -lt 2 ]; then
curl -s -H 'Content-Type: application/json' --data '{"docker_tag":"nightly"}' -X POST $1
else
curl -s -H 'Content-Type: application/json' --data '{"docker_tag":"latest"}' -X POST $2
fi