We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 629e356 + 9977d24 commit 7221e38Copy full SHA for 7221e38
Makefile
@@ -4,8 +4,10 @@
4
5
PREFIX := $(DESTDIR)/usr/local
6
BINDIR := $(PREFIX)/sbin
7
-RUNC_IMAGE := runc_dev
8
-RUNC_TEST_IMAGE := runc_test
+GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null)
+GIT_BRANCH_CLEAN := $(shell echo $(GIT_BRANCH) | sed -e "s/[^[:alnum:]]/-/g")
9
+RUNC_IMAGE := runc_dev$(if $(GIT_BRANCH_CLEAN),:$(GIT_BRANCH_CLEAN))
10
+RUNC_TEST_IMAGE := runc_test$(if $(GIT_BRANCH_CLEAN),:$(GIT_BRANCH_CLEAN))
11
PROJECT := github.com/opencontainers/runc
12
TEST_DOCKERFILE := script/test_Dockerfile
13
BUILDTAGS := seccomp
0 commit comments