VERSION = $(shell cat Cargo.toml | grep "^version" | sed -e 's-v--g' -e 's-.*= --g')

.PHONY: test build

docker-build:
	docker build -f Dockerfile.release -t okieoth/rvault:$(VERSION) .

docker-push:
	docker push okieoth/rvault:$(VERSION)

build:
	cargo test
	cargo build

test:
	cargo test

run-bin:
	cargo run

publish-dry-run:
	cargo publish --dry-run

publish:
	cargo publish

version:
	cargo run -- -V
