Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Commit

Permalink
🚀 Add deploying scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Mar 5, 2019
1 parent e3cc49e commit 73a71c4
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/build-push.sh
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

set -e
set -x

echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

docker-compose -f docker-compose.build.stage01.yml build

docker-compose -f docker-compose.build.stage01.yml push

# docker-compose -f docker-compose.build.stage02.yml build

# docker-compose -f docker-compose.build.stage02.yml push
8 changes: 8 additions & 0 deletions scripts/deploy.sh
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -e
set -x

bash scripts/build-push.sh

bash scripts/trigger-children.sh
21 changes: 21 additions & 0 deletions scripts/trigger-children.sh
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

set -e
set -x

echo "No children yet"

# body='{
# "request": {
# "branch":"master"
# }}'

# for child in tiangolo%2Fuvicorn-gunicorn-fastapi-docker tiangolo%2Fuvicorn-gunicorn-starlette-docker; do
# 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/$child/requests
# done

0 comments on commit 73a71c4

Please sign in to comment.