👷 Trigger Docker images build on Travis (#65)

This commit is contained in:
Sebastián Ramírez 2019-03-04 11:12:21 +04:00 committed by GitHub
parent 7658d0af16
commit 2caca42b9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

View File

@ -15,3 +15,9 @@ script:
after_script: after_script:
- bash <(curl -s https://codecov.io/bash) - bash <(curl -s https://codecov.io/bash)
deploy:
provider: script
script: bash scripts/trigger-docker.sh
# on:
# branch: master

17
scripts/trigger-docker.sh Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -e
set -x
body='{
"request": {
"branch":"master"
}}'
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token $TRAVIS_TOKEN" \
-d "$body" \
https://api.travis-ci.org/repo/tiangolo%2Fuvicorn-gunicorn-fastapi-docker/requests