2023-10-21 15:14:21 +00:00
|
|
|
set dotenv-load := false
|
|
|
|
|
|
|
|
_default:
|
|
|
|
@just --list
|
|
|
|
|
2023-12-01 21:27:01 +00:00
|
|
|
make_release $VERSION $FORCE="":
|
2023-10-26 16:23:54 +00:00
|
|
|
sed -i 's/^version = .*/version = "'$VERSION'"/g' Cargo.toml
|
2023-10-22 09:01:42 +00:00
|
|
|
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
|
2023-12-01 21:27:01 +00:00
|
|
|
git tag $FORCE v$VERSION -m 'version v'$VERSION
|
2024-01-02 18:32:47 +00:00
|
|
|
git push $FORCE
|
2023-12-01 21:27:01 +00:00
|
|
|
git push $FORCE origin v$VERSION
|
2023-10-22 09:01:42 +00:00
|
|
|
@just docker_release v$VERSION
|
|
|
|
|
2023-10-21 16:16:51 +00:00
|
|
|
docker_release $TAG:
|
2023-10-22 09:01:42 +00:00
|
|
|
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 .
|
2023-10-21 15:14:21 +00:00
|
|
|
|