mirror of https://github.com/docker/docs.git
Merge pull request #2245 from jeanlaurent/2204-make-fail-with-https
Fix for #2244 - make fails with https remote url
This commit is contained in:
commit
d8da062f73
|
@ -1,9 +1,5 @@
|
||||||
# Project name, used to name the binaries
|
# Project name, used to name the binaries
|
||||||
PKG_NAME := docker-machine
|
PKG_NAME := docker-machine
|
||||||
# Github infos
|
|
||||||
GITHUB_INFO := $(shell git config --get remote.origin.url | sed -e 's/.*:\(.*\).git/\1/')
|
|
||||||
GH_USER ?= $(shell echo $(GITHUB_INFO) | cut -d \/ -f 1)
|
|
||||||
GH_REPO ?= $(shell echo $(GITHUB_INFO) | cut -d \/ -f 2)
|
|
||||||
|
|
||||||
# If true, disable optimizations and does NOT strip the binary
|
# If true, disable optimizations and does NOT strip the binary
|
||||||
DEBUG ?=
|
DEBUG ?=
|
||||||
|
|
|
@ -9,6 +9,10 @@ release-pack:
|
||||||
find ./bin -type d -mindepth 1 -exec zip -r -j {}.zip {} \;
|
find ./bin -type d -mindepth 1 -exec zip -r -j {}.zip {} \;
|
||||||
|
|
||||||
release: clean dco fmt test test-long build-x release-pack release-checksum
|
release: clean dco fmt test test-long build-x release-pack release-checksum
|
||||||
|
# Github infos
|
||||||
|
GH_USER ?= $(shell git config --get remote.origin.url | sed -e 's/.*[:/]\(.*\)\/\([^.]*\)\(.*\)/\1/')
|
||||||
|
GH_REPO ?= $(shell git config --get remote.origin.url | sed -e 's/.*[:/]\(.*\)\/\([^.]*\)\(.*\)/\2/')
|
||||||
|
|
||||||
$(if $(GITHUB_TOKEN), , \
|
$(if $(GITHUB_TOKEN), , \
|
||||||
$(error GITHUB_TOKEN must be set for github-release))
|
$(error GITHUB_TOKEN must be set for github-release))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue