docker-archlinux-rf/curl.it

8 lines
228 B
Plaintext
Raw Normal View History

2020-06-03 22:58:30 +02:00
#!/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