forked from jenkinsci/docker-ssh-agent
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 718 Bytes
/
Makefile
File metadata and controls
32 lines (23 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
ROOT:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
IMAGE_NAME:=jenkins4eval/ssh-slave
IMAGE_ALPINE:=${IMAGE_NAME}:alpine
IMAGE_DEBIAN:=${IMAGE_NAME}:test
IMAGE_JDK11:=${IMAGE_NAME}:jdk11
build: build-alpine build-debian build-jdk11
build-alpine:
docker build -t ${IMAGE_ALPINE} --file Dockerfile-alpine .
build-debian:
docker build -t ${IMAGE_DEBIAN} --file Dockerfile .
build-jdk11:
docker build -t ${IMAGE_JDK11} --file Dockerfile-jdk11 .
.PHONY: test
test: test-alpine test-jdk11 test-debian
.PHONY: test-alpine
test-alpine:
@FLAVOR=alpine bats tests/tests.bats
.PHONY: test-jdk11
test-alpine:
@FLAVOR=jdk11 bats tests/tests.bats
.PHONY: test-debian
test-debian:
@bats tests/tests.bats