feat: add drone promose makefile target
Diff
Makefile | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
@@ -81,7 +81,7 @@ darwin:
test:
@echo "Testing application..."
@rustc --version
@rustc -vV
@cargo test
.PHONY: test
@@ -107,7 +107,7 @@ define build_release =
set -u
echo "Compiling application..."
rustc --version
rustc -vV
echo "Compiling release binary for $(PKG_TARGET)..."
cargo build --release --target $(PKG_TARGET)
echo
@@ -209,6 +209,10 @@ prod.release.dockerfiles:
./docker/version.sh v$(PKG_TAG)
.ONESHELL: prod.release.dockerfiles
promote:
@drone build promote joseluisq/static-web-server $(BUILD) $(ENV)
.PHONY: promote
loadtest:
@echo "GET http://localhost:1234" | \
vegeta -cpus=12 attack -workers=10 -duration=5s -connections=10000 -rate=200 -http2=false > results.bin