- fixing the docker-release stage
This commit is contained in:
parent
b148070b5e
commit
bbdc7cae49
|
@ -14,7 +14,7 @@ install:
|
||||||
- make test
|
- make test
|
||||||
- if ([[ ${TRAVIS_BRANCH} == "master" ]] && [[ ${TRAVIS_PULL_REQUEST} != "true" ]]) || [[ -n ${TRAVIS_TAG} ]]; then
|
- if ([[ ${TRAVIS_BRANCH} == "master" ]] && [[ ${TRAVIS_PULL_REQUEST} != "true" ]]) || [[ -n ${TRAVIS_TAG} ]]; then
|
||||||
docker login -u ${REGISTRY_USERNAME} -p ${REGISTRY_TOKEN} -e ${AUTHOR_EMAIL} ${REGISTRY};
|
docker login -u ${REGISTRY_USERNAME} -p ${REGISTRY_TOKEN} -e ${AUTHOR_EMAIL} ${REGISTRY};
|
||||||
VERSION="latest" make docker-release;
|
VERSION=latest make docker-release;
|
||||||
fi
|
fi
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- NAME=GOOS=linux GOARCH=amd64 godep go build -o bin/vault-sidekick-linux-amd64
|
- NAME=GOOS=linux GOARCH=amd64 godep go build -o bin/vault-sidekick-linux-amd64
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -4,7 +4,7 @@ AUTHOR ?= ukhomeofficedigital
|
||||||
REGISTRY ?= quay.io
|
REGISTRY ?= quay.io
|
||||||
GOVERSION ?= 1.7.1
|
GOVERSION ?= 1.7.1
|
||||||
HARDWARE=$(shell uname -m)
|
HARDWARE=$(shell uname -m)
|
||||||
VERSION=$(shell awk '/Version =/ { print $$3 }' main.go | sed 's/"//g')
|
VERSION ?= $(shell awk '/Version =/ { print $$3 }' main.go | sed 's/"//g')
|
||||||
VETARGS?=-asmdecl -atomic -bool -buildtags -copylocks -methods -nilfunc -printf -rangeloops -shift -structtags -unsafeptr
|
VETARGS?=-asmdecl -atomic -bool -buildtags -copylocks -methods -nilfunc -printf -rangeloops -shift -structtags -unsafeptr
|
||||||
|
|
||||||
.PHONY: test authors changelog build docker static release
|
.PHONY: test authors changelog build docker static release
|
||||||
|
|
Reference in a new issue