Fix travis-ci publish script [ci skip]
This commit is contained in:
parent
65a7f0729b
commit
be1fd6198c
1 changed files with 8 additions and 8 deletions
|
@ -29,7 +29,7 @@ fi
|
||||||
|
|
||||||
function publish() {
|
function publish() {
|
||||||
|
|
||||||
body=$(cat <<'EOF'
|
body=$(cat <<EOF
|
||||||
{
|
{
|
||||||
"request": {
|
"request": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
|
@ -43,13 +43,13 @@ body=$(cat <<'EOF'
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
|
||||||
echo curl -s -X POST \
|
curl -s -X POST \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Accept: application/json" \
|
-H "Accept: application/json" \
|
||||||
-H "Travis-API-Version: 3" \
|
-H "Travis-API-Version: 3" \
|
||||||
-H "Authorization: token $1" \
|
-H "Authorization: token $1" \
|
||||||
--data "'$body'" \
|
--data "$body" \
|
||||||
https://api.travis-ci.org/repo/kubernetes%2Fingress-nginx/requests
|
https://api.travis-ci.org/repo/kubernetes%2Fingress-nginx/requests
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
|
Loading…
Reference in a new issue