This commit is contained in:
parent
786c2cacb7
commit
7fb4c268f5
13
.drone.yml
13
.drone.yml
@ -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
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
|
Loading…
Reference in New Issue
Block a user