From 087982e4c40ea8bcb485eeb57241ce1feea97edb Mon Sep 17 00:00:00 2001 From: Dan Funk Date: Wed, 5 Feb 2020 15:53:52 -0500 Subject: [PATCH] Updates in travis to do a push to docker hub, so our code can be deployed to various environments. --- .travis.yml | 9 ++++++++- README.md | 4 ++++ docker_push.sh | 3 +++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 docker_push.sh diff --git a/.travis.yml b/.travis.yml index cd3197d9..82a531cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: python services: - postgresql + - docker python: - "3.7" @@ -17,4 +18,10 @@ install: # command to run tests script: - - pytest \ No newline at end of file + - pytest + +deploy: + provider: script + script: bash docker_push + on: + branch: master \ No newline at end of file diff --git a/README.md b/README.md index 48c746d7..a8191a67 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +# CrConnectFrontend + +[![Build Status](https://travis-ci.com/sartography/cr-connect-workflow.svg?branch=master)](https://travis-ci.com/sartography/cr-connect-workflow) + # CR Connect Workflow Microservice ## Development Setup ### Tools diff --git a/docker_push.sh b/docker_push.sh new file mode 100644 index 00000000..9d176aa1 --- /dev/null +++ b/docker_push.sh @@ -0,0 +1,3 @@ +#!/bin/bash +echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin +docker push sartography/cr-connect-workflow \ No newline at end of file