-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (27 loc) · 1.01 KB
/
Makefile
File metadata and controls
39 lines (27 loc) · 1.01 KB
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
DOCKER ?= docker
REPO ?= docker.io/jerusdp/ci-rust
ROLLING_TAG ?= rolling-6mo
WASI_TAG ?= wasi
build:
$(DOCKER) build -t $(REPO):$(ROLLING_TAG) --target final . 2>&1 | tee build.log
build-wasi:
$(DOCKER) build -t $(REPO):$(ROLLING_TAG)-$(WASI_TAG) --target wasi . 2>&1 | tee build-wasi.log
build-base:
$(DOCKER) build -t $(REPO):base --target base . 2>&1 | tee build-base.log
build-test:
$(DOCKER) build -t $(REPO)/test:$(ROLLING_TAG) --target test . 2>&1 | tee build-test.log
test: build-test
$(DOCKER) run --rm $(REPO)/test:$(ROLLING_TAG)
debug:
$(DOCKER) run --rm -it --entrypoint=/bin/bash $(REPO):$(ROLLING_TAG)
debug-wasi:
$(DOCKER) run --rm -it --entrypoint=/bin/bash $(REPO):$(ROLLING_TAG)-$(WASI_TAG)
debug-base:
$(DOCKER) run --rm -it --entrypoint=/bin/bash $(REPO):base
publish: build
$(DOCKER) push $(REPO):$(ROLLING_TAG)
publish-wasi: build-wasi
$(DOCKER) push $(REPO):$(ROLLING_TAG)-$(WASI_TAG)
publish-base: build-base
$(DOCKER) push $(REPO):base
publish-all: publish publish-wasi publish-base