Merge pull request #929 from mlaventure/tag-image-with-git-branch
Use git branch name as tag when building images
This commit is contained in:
commit
7221e38782
6
Makefile
6
Makefile
|
@ -4,8 +4,10 @@
|
||||||
|
|
||||||
PREFIX := $(DESTDIR)/usr/local
|
PREFIX := $(DESTDIR)/usr/local
|
||||||
BINDIR := $(PREFIX)/sbin
|
BINDIR := $(PREFIX)/sbin
|
||||||
RUNC_IMAGE := runc_dev
|
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null)
|
||||||
RUNC_TEST_IMAGE := runc_test
|
GIT_BRANCH_CLEAN := $(shell echo $(GIT_BRANCH) | sed -e "s/[^[:alnum:]]/-/g")
|
||||||
|
RUNC_IMAGE := runc_dev$(if $(GIT_BRANCH_CLEAN),:$(GIT_BRANCH_CLEAN))
|
||||||
|
RUNC_TEST_IMAGE := runc_test$(if $(GIT_BRANCH_CLEAN),:$(GIT_BRANCH_CLEAN))
|
||||||
PROJECT := github.com/opencontainers/runc
|
PROJECT := github.com/opencontainers/runc
|
||||||
TEST_DOCKERFILE := script/test_Dockerfile
|
TEST_DOCKERFILE := script/test_Dockerfile
|
||||||
BUILDTAGS := seccomp
|
BUILDTAGS := seccomp
|
||||||
|
|
Loading…
Reference in New Issue