File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,11 +34,8 @@ install:
3434script :
3535 - make test
3636 - make -C client/ test
37- before_deploy :
38- - BUILD_TAG=latest IMAGE_PREFIX=deis/ make build
3937deploy :
4038 provider : script
4139 script : _scripts/ci/deploy.sh
4240 on :
4341 branch : master
44- condition : ${TRAVIS_PULL_REQUEST} == false
Original file line number Diff line number Diff line change 1- ifndef BUILD_TAG
2- BUILD_TAG = git-$(shell git rev-parse --short HEAD)
3- endif
4-
5- COMPONENT =workflow
6- IMAGE_PREFIX ?= $(DEV_REGISTRY ) /deis/
7- IMAGE =$(IMAGE_PREFIX )$(COMPONENT ) :$(BUILD_TAG )
8- SHELL_SCRIPTS =$(wildcard rootfs/bin/* ) $(shell find "rootfs" -name '* .sh')
1+
2+ REGISTRY ?= $(DEV_REGISTRY )
3+ IMAGE_PREFIX ?= deis
4+ COMPONENT ?= workflow
5+ BUILD_TAG ?= git-$(shell git rev-parse --short HEAD)
6+ IMAGE = $(REGISTRY ) /$(IMAGE_PREFIX ) /$(COMPONENT ) :$(BUILD_TAG )
7+ SHELL_SCRIPTS = $(wildcard rootfs/bin/* ) $(shell find "rootfs" -name '* .sh') $(shell find "_scripts/ci" -name '* .sh')
98
109check-docker :
1110 @if [ -z $$ (which docker) ]; then \
Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /usr/bin/env bash
2+ #
3+ # Build and push Docker images to Docker Hub and quay.io.
4+ #
25
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+ cd " $( dirname " $0 " ) "
7+
8+ docker login -e=" $DOCKER_EMAIL " -u=" $DOCKER_USERNAME " -p=" $DOCKER_PASSWORD " docker.io
9+ REGISTRY=docker.io IMAGE_PREFIX=deisci BUILD_TAG=v2-alpha make -C ../.. docker-build docker-push
610docker login -e=" $QUAY_EMAIL " -u=" $QUAY_USERNAME " -p=" $QUAY_PASSWORD " quay.io
7- docker push quay.io/deis/workflow:latest
11+ REGISTRY= quay.io IMAGE_PREFIX=deisci BUILD_TAG=v2-alpha make -C ../.. docker-build docker-push
Original file line number Diff line number Diff line change 1515 spec :
1616 containers :
1717 - name : deis-workflow
18- image : deis/ workflow:latest
18+ image : quay.io/deisci/ workflow:v2-alpha
1919 env :
2020 - name : DEBUG
2121 value : " true"
You can’t perform that action at this time.
0 commit comments