23934def9d
Former-commit-id: 24aabaeb636a14043c182a48c9ef2cdf197f8dab [formerly 2679069d2b50607d3441450719d54fa529ab608d] [formerly 07d82af219ba8ca4d9b54f4af2bd27a2917b7952 [formerly cfca821581f3386b36e3b57b7bc832a1acec3fef]] Former-commit-id: fb679b06635eeb954e9ad7b05cf93b79ed745e21 [formerly 8bc7985e8ae9edb07e7842e8c0cde3f7bf6f0f09] Former-commit-id: ce59677e524109e6018e097508eae5f6fde8fdc7 Former-commit-id: 49c6929b039e6ad4ece05791fe8a3dacc3f793d5 Former-commit-id: 823f7e24141a12b82ad9a1dc9ecb7418ed73e77f Former-commit-id: 8a56b6bf528819ce46b17de2f38aab4ed2abf449 [formerly 06058a8327919bd3621d3552e479815d731895bb] Former-commit-id: 5563d8ae8da6b710dcf7cefb44961aa9cec627ac
20 lines
755 B
Makefile
20 lines
755 B
Makefile
set dotenv-load := false
|
|
|
|
_default:
|
|
@just --list
|
|
|
|
make_release $VERSION:
|
|
sed -ie '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 v$VERSION -m 'version v'$VERSION
|
|
git push
|
|
git push 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 .
|
|
|