Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

Commit

Permalink
👷 Add Travis CI (#4)
Browse files Browse the repository at this point in the history
* 👷 Add Travis for CI

* 🔧 Login to Docker Hub before push
  • Loading branch information
tiangolo authored May 16, 2019
1 parent aa4a07c commit a43c63a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
dist: xenial

services:
- docker

script:
- bash scripts/build.sh

deploy:
provider: script
script: bash scripts/deploy.sh
on:
branch: master
4 changes: 4 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -e

docker build -t tiangolo/docker-with-compose .
5 changes: 5 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -e

bash scripts/build.sh
bash scripts/push.sh
6 changes: 6 additions & 0 deletions scripts/push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -e

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

docker push tiangolo/docker-with-compose

0 comments on commit a43c63a

Please sign in to comment.