30 lines
914 B
Makefile
30 lines
914 B
Makefile
##DOCKER ?= DOCKER_BUILDKIT=1 docker
|
|
DOCKER ?= docker
|
|
|
|
all:
|
|
@echo "Choose one of the following targets:"
|
|
@echo " alpine rocky ubnt"
|
|
|
|
alpine: @srcdir@/codepot-@VERSION@.tar.gz
|
|
$(DOCKER) build -t codepot:alpine -f @srcdir@/Dockerfile.alpine @srcdir@ || true
|
|
rm -f @srcdir@/codepot-@VERSION@.tar.gz
|
|
|
|
rocky: @srcdir@/codepot-@VERSION@.tar.gz
|
|
$(DOCKER) build -t codepot:rocky -f @srcdir@/Dockerfile.rocky @srcdir@ || true
|
|
rm -f @srcdir@/codepot-@VERSION@.tar.gz
|
|
|
|
ubnt: @srcdir@/codepot-@VERSION@.tar.gz
|
|
$(DOCKER) build -t codepot:ubnt -f @srcdir@/Dockerfile.ubnt @srcdir@ || true
|
|
rm -f @srcdir@/codepot-@VERSION@.tar.gz
|
|
|
|
push:
|
|
$(DOCKER) tag codepot:rocky hyunghwan/codepot:rocky
|
|
$(DOCKER) tag codepot:ubnt hyunghwan/codepot:ubnt
|
|
$(DOCKER) push hyunghwan/codepot:rocky
|
|
$(DOCKER) push hyunghwan/codepot:ubnt
|
|
|
|
@srcdir@/codepot-@VERSION@.tar.gz:
|
|
cd .. && make dist
|
|
cp ../codepot-@VERSION@.tar.gz @srcdir@/
|
|
|