We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 67566ab + f2eca68 commit d9c04e7Copy full SHA for d9c04e7
3 files changed
.travis.yml
@@ -0,0 +1,10 @@
1
+language: generic
2
+
3
+services:
4
+ - docker
5
6
+script: make build
7
8
+deploy:
9
+ provider: script
10
+ script: _scripts/ci/deploy.sh
Makefile
@@ -1,7 +1,7 @@
-VERSION := 0.2.0
-REGISTRY ?= quay.io
+VERSION := $(shell git describe --tags --exact-match 2>/dev/null || echo latest)
+REGISTRY ?= quay.io/
IMAGE_PREFIX ?= deis/
-IMAGE := ${REGISTRY}/${IMAGE_PREFIX}go-dev:${VERSION}
+IMAGE := ${REGISTRY}${IMAGE_PREFIX}go-dev:${VERSION}
build:
docker build -t ${IMAGE} rootfs
_scripts/ci/deploy.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USER" -p="$DOCKER_PASSWORD"
+REGISTRY="" make push
+docker login -e="$QUAY_EMAIL" -u="$QUAY_USERNAME" -p="$QUAY_PASSWORD" quay.io
+make push
0 commit comments