-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (37 loc) · 2.13 KB
/
Makefile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
DOCKER=docker
REPOSITORY=dpsenner/cakebuild
DOCKER_RUN_LINUX=$(DOCKER) run --rm -v $(abspath test/workspace):/workspace -w /workspace
DOCKER_RUN_WINDOWS=$(DOCKER) run --rm -v $(abspath test/workspace):C:/workspace -w C:/workspace
build-linux: build-dotnet-core-latest build-dotnet-core-2-sdk
push-linux: push-dotnet-core-latest push-dotnet-core-2-sdk
run-linux: run-dotnet-core-latest run-dotnet-core-2-sdk
build-windows: build-dotnet-framework-sdk
push-windows: push-dotnet-framework-sdk
run-windows: run-dotnet-framework-sdk
build-dotnet-core-latest:
$(DOCKER) build -t $(REPOSITORY):dotnet-core-latest flavors/dotnet-core/latest
run-dotnet-core-latest: run-dotnet-core-latest-Default run-dotnet-core-latest-Hello-World
run-dotnet-core-latest-Default: build-dotnet-core-latest
$(DOCKER_RUN_LINUX) $(REPOSITORY):dotnet-core-latest
run-dotnet-core-latest-Hello-World: build-dotnet-core-latest
$(DOCKER_RUN_LINUX) $(REPOSITORY):dotnet-core-latest --target=Hello-World
push-dotnet-core-latest: run-dotnet-core-latest
$(DOCKER) push $(REPOSITORY):dotnet-core-latest
build-dotnet-core-2-sdk:
$(DOCKER) build -t $(REPOSITORY):dotnet-core-2-sdk flavors/dotnet-core/2-sdk
run-dotnet-core-2-sdk: run-dotnet-core-2-sdk-Default run-dotnet-core-2-sdk-Hello-World
run-dotnet-core-2-sdk-Default: build-dotnet-core-2-sdk
$(DOCKER_RUN_LINUX) $(REPOSITORY):dotnet-core-2-sdk
run-dotnet-core-2-sdk-Hello-World: build-dotnet-core-2-sdk
$(DOCKER_RUN_LINUX) $(REPOSITORY):dotnet-core-2-sdk --target=Hello-World
push-dotnet-core-2-sdk: run-dotnet-core-2-sdk
$(DOCKER) push $(REPOSITORY):dotnet-core-2-sdk
build-dotnet-framework-sdk:
$(DOCKER) build -t $(REPOSITORY):dotnet-framework-sdk flavors/dotnet-framework/sdk
run-dotnet-framework-sdk: run-dotnet-framework-sdk-Default run-dotnet-framework-sdk-Hello-World
run-dotnet-framework-sdk-Default: build-dotnet-framework-sdk
$(DOCKER_RUN_WINDOWS) $(REPOSITORY):dotnet-framework-sdk
run-dotnet-framework-sdk-Hello-World: build-dotnet-framework-sdk
$(DOCKER_RUN_WINDOWS) $(REPOSITORY):dotnet-framework-sdk --target=Hello-World
push-dotnet-framework-sdk: run-dotnet-framework-sdk
$(DOCKER) push $(REPOSITORY):dotnet-framework-sdk