Add Makefile for running CI jobs locally.
This commit is contained in:
@@ -21,6 +21,7 @@ help:
|
||||
build: ## Build the docker image.
|
||||
> docker build --tag $(IMAGE_NAME) --target=$(TARGET) --file Dockerfile .
|
||||
> docker volume create webhook-bridge-cargo-registry
|
||||
> docker volume create webhook-bridge-rust-target
|
||||
|
||||
.PHONY: shell
|
||||
shell: ## Launch an interactive shell inside the docker image with the source repository mounted at /source.
|
||||
@@ -31,3 +32,4 @@ shell: build
|
||||
clean:
|
||||
> docker rmi $(IMAGE_NAME)
|
||||
> docker volume rm webhook-bridge-cargo-registry
|
||||
> docker volume rm webhook-bridge-rust-target
|
||||
|
||||
Reference in New Issue
Block a user