Skip to content

Commit e6e15f4

Browse files
author
Seth Goings
committed
chore(deploy.sh): adhere to standard location
Fixes #16
1 parent 1334843 commit e6e15f4

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ script:
1616
- make test
1717
deploy:
1818
provider: script
19-
script: contrib/ci/deploy.sh
19+
script: _scripts/deploy.sh
2020
on:
2121
branch: master

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ include includes.mk
66
# - Kubernetes service, rc, pod, secret, volume names
77
SHORT_NAME := postgres
88

9-
BUILD_TAG ?= git-$(shell git rev-parse --short HEAD)
9+
VERSION ?= git-$(shell git rev-parse --short HEAD)
1010

1111
# Legacy support for DEV_REGISTRY, plus new support for DEIS_REGISTRY.
1212
DEIS_REGISTRY ?= ${DEV_REGISTRY}
@@ -16,7 +16,7 @@ IMAGE_PREFIX ?= deis/
1616
# Kubernetes-specific information for RC, Service, and Image.
1717
RC := contrib/kubernetes/manifests/${SHORT_NAME}-rc.tmp.yaml
1818
SVC := contrib/kubernetes/manifests/${SHORT_NAME}-service.yaml
19-
IMAGE := ${DEIS_REGISTRY}/${IMAGE_PREFIX}${SHORT_NAME}:${BUILD_TAG}
19+
IMAGE := ${DEIS_REGISTRY}${IMAGE_PREFIX}${SHORT_NAME}:${VERSION}
2020

2121
all:
2222
@echo "Use a Makefile to control top-level building of the project."
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
cd "$(dirname "$0")" || exit 1
77

8-
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" docker.io
9-
DEIS_REGISTRY=docker.io IMAGE_PREFIX=deisci/ BUILD_TAG=v2-alpha make -C ../.. docker-build docker-push
8+
export IMAGE_PREFIX=deisci VERSION=v2-alpha
9+
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
10+
DEIS_REGISTRY='' make -C .. docker-build docker-push
1011
docker login -e="$QUAY_EMAIL" -u="$QUAY_USERNAME" -p="$QUAY_PASSWORD" quay.io
11-
DEIS_REGISTRY=quay.io IMAGE_PREFIX=deisci/ BUILD_TAG=v2-alpha make -C ../.. docker-build docker-push
12+
DEIS_REGISTRY=quay.io make -C .. docker-build docker-push

0 commit comments

Comments
 (0)