This repository was archived by the owner on Sep 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (38 loc) · 1.82 KB
/
Makefile
File metadata and controls
52 lines (38 loc) · 1.82 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
40
41
42
43
44
45
46
47
48
49
50
51
52
export BUILDKIT_PROGRESS = plain
REPOSITORY = sensorfu/rust-env
DOCKER = docker
# Rust version dash our container version
VERSION = 1.68.2-0
build: glibc linux-amd64 linux-armv7 linux-aarch64 linux-mips32el
push: push-glibc push-linux-amd64 push-linux-armv7 push-linux-aarch64
glibc: Dockerfile.glibc
$(DOCKER) build -t $(REPOSITORY):$@-$(VERSION) -f $< .
$(DOCKER) tag $(REPOSITORY):$@-$(VERSION) $(REPOSITORY):$@-latest
linux-amd64: Dockerfile.linux-amd64 cargo.config
$(DOCKER) build -t $(REPOSITORY):$@-$(VERSION) -f $< .
$(DOCKER) tag $(REPOSITORY):$@-$(VERSION) $(REPOSITORY):$@-latest
linux-armv7: Dockerfile.linux-armv7 cargo.config
$(DOCKER) build -t $(REPOSITORY):$@-$(VERSION) -f $< .
$(DOCKER) tag $(REPOSITORY):$@-$(VERSION) $(REPOSITORY):$@-latest
linux-aarch64: Dockerfile.linux-aarch64 cargo.config
$(DOCKER) build -t $(REPOSITORY):$@-$(VERSION) -f $< .
$(DOCKER) tag $(REPOSITORY):$@-$(VERSION) $(REPOSITORY):$@-latest
linux-mips32el: Dockerfile.linux-mips32el cargo.config
$(DOCKER) build -t $(REPOSITORY):$@-$(VERSION) -f $< .
$(DOCKER) tag $(REPOSITORY):$@-$(VERSION) $(REPOSITORY):$@-latest
push-glibc: glibc
$(DOCKER) push $(REPOSITORY):$<-$(VERSION)
$(DOCKER) push $(REPOSITORY):$<-latest
push-linux-amd64: linux-amd64
$(DOCKER) push $(REPOSITORY):$<-$(VERSION)
$(DOCKER) push $(REPOSITORY):$<-latest
push-linux-armv7: linux-armv7
$(DOCKER) push $(REPOSITORY):$<-$(VERSION)
$(DOCKER) push $(REPOSITORY):$<-latest
push-linux-aarch64: linux-aarch64
$(DOCKER) push $(REPOSITORY):$<-$(VERSION)
$(DOCKER) push $(REPOSITORY):$<-latest
push-linux-mips32el: linux-mips32el
$(DOCKER) push $(REPOSITORY):$<-$(VERSION)
$(DOCKER) push $(REPOSITORY):$<-latest
.PHONY: build push glibc linux-amd64 linux-armv7 linux-aarch64 linux-mips32el push-glibc push-linux-amd64 push-linux-armv7 push-linux-aarch64 push-linux-mips32el