2020-06-03 22:58:30 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-06-03 23:05:31 +02:00
|
|
|
if [ $# -gt 1 ]; then
|
|
|
|
curl -s -H 'Content-Type: application/json' --data '{"docker_tag":"nightly"}' -X POST $2
|
2020-06-03 22:58:30 +02:00
|
|
|
else
|
2020-06-03 23:05:31 +02:00
|
|
|
curl -s -H 'Content-Type: application/json' --data '{"docker_tag":"latest"}' -X POST $1
|
2020-06-03 22:58:30 +02:00
|
|
|
fi
|