diff --git a/zeus/commands.yml b/zeus/commands.yml index 6dd207f4..bf9d0a98 100644 --- a/zeus/commands.yml +++ b/zeus/commands.yml @@ -24,7 +24,7 @@ commands: - clean buildNumber: true exec: | - echo "generating netcap binary v${VERSION}" + echo "[INFO] generating netcap binary v${VERSION}" go build -ldflags "-X github.com/dreadl0ck/netcap.Version=v${VERSION}" -o bin/netcap -i github.com/dreadl0ck/netcap/cmd build-all-linux-docker: @@ -33,6 +33,17 @@ commands: dependencies: - clean + version-bump: + description: bump framework version and add git version tag + exec: | + read -p "[WARNING] This will bump the version to $VERSION, as configured in the zeus/commands.yml. Are you sure? Hit [Enter] to proceed" + + git add . + git commit -m "version bump to v${VERSION}" + git push + + echo "[INFO] version bumped to v${VERSION}" + release: description: release a new version, bundle and publish on github dependencies: