1
0
Fork 0
mirror of https://github.com/repo-runner/debian-node.git synced 2024-11-09 14:20:04 +00:00

Build image in multiple flavors

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-07-27 14:17:47 +02:00
parent 72f3f7aa9c
commit 2e57f55f1a
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
3 changed files with 24 additions and 1 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
Dockerfile.build
korvike

View file

@ -1,4 +1,4 @@
FROM node:stretch FROM node:{{ .ver }}
LABEL maintainer Knut Ahlers <knut@ahlers.me> LABEL maintainer Knut Ahlers <knut@ahlers.me>

21
Makefile Normal file
View file

@ -0,0 +1,21 @@
KORVIKE_VERSION:=v0.7.1
jenkins: build_latest
jenkins: build_14
jenkins: build_12
jenkins: build_10
build_%: korvike
./korvike \
-i Dockerfile \
-o Dockerfile.build \
-v ver=$*
docker build \
-t reporunner/debian-node:$* \
-f Dockerfile.build .
docker push \
reporunner/debian-node:$*
korvike:
curl -sSfL "https://github.com/Luzifer/korvike/releases/download/$(KORVIKE_VERSION)/korvike_linux_amd64.tar.gz" | tar -xz
mv korvike_linux_amd64 korvike