codepot/docker/Makefile.am

30 lines
914 B
Makefile
Raw Normal View History

2022-08-30 14:13:29 +00:00
##DOCKER ?= DOCKER_BUILDKIT=1 docker
DOCKER ?= docker
2021-09-08 13:07:25 +00:00
all:
2021-08-31 16:13:29 +00:00
@echo "Choose one of the following targets:"
2022-08-30 14:13:29 +00:00
@echo " alpine rocky ubnt"
2021-08-31 16:13:29 +00:00
2022-08-30 14:13:29 +00:00
alpine: @srcdir@/codepot-@VERSION@.tar.gz
2022-08-30 17:05:35 +00:00
$(DOCKER) build -t codepot:alpine -f @srcdir@/Dockerfile.alpine @srcdir@ || true
2021-09-08 13:04:04 +00:00
rm -f @srcdir@/codepot-@VERSION@.tar.gz
2021-08-31 16:13:29 +00:00
rocky: @srcdir@/codepot-@VERSION@.tar.gz
$(DOCKER) build -t codepot:rocky -f @srcdir@/Dockerfile.rocky @srcdir@ || true
2021-09-08 13:04:04 +00:00
rm -f @srcdir@/codepot-@VERSION@.tar.gz
2022-08-30 14:13:29 +00:00
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
2021-09-08 12:58:56 +00:00
@srcdir@/codepot-@VERSION@.tar.gz:
cd .. && make dist
2021-09-08 12:58:56 +00:00
cp ../codepot-@VERSION@.tar.gz @srcdir@/