1
0
mirror of https://github.com/repo-runner/debian-node.git synced 2024-09-16 13:48:27 +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>

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