wstunnel/justfile
Σrebe - Romain GERARD b705484d9f
Dont use libc dns resolver by default
+ By default libc dns resolution is blocking.
    Which force async runtime to spawn blocking thread for it
    which lead to heavy memory usage
2024-01-02 19:38:16 +01:00

20 lines
785 B
Makefile

set dotenv-load := false
_default:
@just --list
make_release $VERSION $FORCE="":
sed -i 's/^version = .*/version = "'$VERSION'"/g' Cargo.toml
cargo fmt --all -- --check --color=always || (echo "Use cargo fmt to format your code"; exit 1)
cargo clippy --all --all-features -- -D warnings || (echo "Solve your clippy warnings to succeed"; exit 1)
git add Cargo.*
git commit -m 'Bump version v'$VERSION
git tag $FORCE v$VERSION -m 'version v'$VERSION
git push $FORCE
git push $FORCE origin v$VERSION
@just docker_release v$VERSION
docker_release $TAG:
docker login -u erebe ghcr.io
~/.depot/bin/depot build --project v4z5w7md33 --platform linux/arm/v7,linux/arm64,linux/amd64 -t ghcr.io/erebe/wstunnel:$TAG -t ghcr.io/erebe/wstunnel:latest --push .