Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
👷 Add Travis with Docker build and push
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Apr 11, 2019
1 parent 0a1ec45 commit 287ee90
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
sudo: required

services:
- docker

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

set -e
set -x

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

docker build -t tiangolo/node-frontend:10 .

docker build -t tiangolo/node-frontend:latest .

docker push tiangolo/node-frontend:10

docker push tiangolo/node-frontend:latest

0 comments on commit 287ee90

Please sign in to comment.