-
-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (20 loc) · 530 Bytes
/
Makefile
File metadata and controls
24 lines (20 loc) · 530 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
VERSION ?= 0.4.0
RUST_VERSION ?= 1.51.0
REPO ?= softprops/lambda-rust
TAG ?= "$(REPO):$(VERSION)-rust-$(RUST_VERSION)"
publish: build
@docker push $(TAG)
@docker push $(REPO):latest
build:
@docker build --build-arg RUST_VERSION=$(RUST_VERSION) -t $(TAG) .
@docker tag $(TAG) $(REPO):latest
test: build
@tests/test.sh
debug: build
@docker run --rm -it \
-u $(id -u):$(id -g) \
-v ${PWD}:/code \
-v ${HOME}/.cargo/registry:/cargo/registry \
-v ${HOME}/.cargo/git:/cargo/git \
--entrypoint=/bin/bash \
$(REPO)