diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1b17187 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +Dockerfile.build +korvike diff --git a/Dockerfile b/Dockerfile index fb14800..c3ec606 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:stretch +FROM node:{{ .ver }} LABEL maintainer Knut Ahlers diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..12992a5 --- /dev/null +++ b/Makefile @@ -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