Skip to content

Commit f898cd3

Browse files
committed
feat(.travis.yml): push latest images to quay and docker
1 parent d953e8f commit f898cd3

6 files changed

Lines changed: 16 additions & 0 deletions

File tree

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ cache:
1212
- $GOPATH/src/github.com/deis/helm/vendor
1313
- $HOME/virtualenv/python2.7
1414
services:
15+
- docker
1516
- postgresql
1617
sudo: required
1718
addons:
@@ -33,3 +34,11 @@ install:
3334
script:
3435
- make test
3536
- make -C client/ test
37+
before_deploy:
38+
- BUILD_TAG=latest IMAGE_PREFIX=deis/ make build
39+
deploy:
40+
provider: script
41+
script: _scripts/ci/deploy.sh
42+
on:
43+
branch: master
44+
condition: ${TRAVIS_PULL_REQUEST} == false
File renamed without changes.

_scripts/ci/deploy.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
4+
docker push deis/workflow:latest
5+
docker tag deis/workflow:latest quay.io/deis/workflow:latest
6+
docker login -e="$QUAY_EMAIL" -u="$QUAY_USERNAME" -p="$QUAY_PASSWORD" quay.io
7+
docker push quay.io/deis/workflow:latest

0 commit comments

Comments
 (0)