Skip to content

Commit e3af588

Browse files
committed
feat(deploy.sh): push deisci/workflow:v2-alpha images from master
This is the minimal amount of automation necessary to get a Deis v2 component up for testing.
1 parent b168f40 commit e3af588

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,8 @@ install:
3434
script:
3535
- make test
3636
- make -C client/ test
37-
before_deploy:
38-
- BUILD_TAG=latest IMAGE_PREFIX=deis/ make build
3937
deploy:
4038
provider: script
4139
script: _scripts/ci/deploy.sh
4240
on:
4341
branch: master
44-
condition: ${TRAVIS_PULL_REQUEST} == false

Makefile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
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

109
check-docker:
1110
@if [ -z $$(which docker) ]; then \

_scripts/ci/deploy.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
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
610
docker 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

manifests/deis-workflow-rc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
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"

0 commit comments

Comments
 (0)