mirror of
https://github.com/repo-runner/debian-node.git
synced 2024-11-08 13:50:09 +00:00
Build image in multiple flavors
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
72f3f7aa9c
commit
2e57f55f1a
3 changed files with 24 additions and 1 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
Dockerfile.build
|
||||
korvike
|
|
@ -1,4 +1,4 @@
|
|||
FROM node:stretch
|
||||
FROM node:{{ .ver }}
|
||||
|
||||
LABEL maintainer Knut Ahlers <knut@ahlers.me>
|
||||
|
||||
|
|
21
Makefile
Normal file
21
Makefile
Normal 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
|
Loading…
Reference in a new issue