build:
	cargo build

test:
	cargo test

run:
	cargo run

clean:
	cargo clean



# Publish the image
publish:
	echo $$(git describe --dirty --tags --long --always)
	cargo test # check for errors
	cargo package # check for errors
	cargo clippy # check for errors
	docker buildx build \
		--platform=linux/amd64,linux/arm64 \
		--tag clord/gdo-runner:latest \
		--tag clord/gdo-runner:$$(git describe --dirty --tags --long --always) \
		--push .
	cargo publish

