docker-archlinux-rf/curl.it
surtur bf93ba2eac
All checks were successful
continuous-integration/drone/push Build is passing
fix: exactly the oposite was needed
2020-06-03 23:05:31 +02:00

8 lines
228 B
Bash
Executable File

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