This repository has been archived on 2024-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
clear-docker-images/Makefile

11 lines
359 B
Makefile
Raw Normal View History

2022-02-20 23:40:27 +01:00
.PHONY: bump-version
bump-version:
2022-03-05 16:25:59 +01:00
@type sd > /dev/null
@echo "Bump version to \"${NEW_VERSION}\""
2022-02-20 23:40:27 +01:00
@sd "version = \"${VERSION}\"" "version = \"${NEW_VERSION}\"" Cargo.toml
2022-03-05 16:25:59 +01:00
@sd "VERSION=${VERSION}" "VERSION=${NEW_VERSION}" .env
2022-02-20 23:40:27 +01:00
@git add .
@git commit -m "bump v${NEW_VERSION}"
@git tag -m "bump v${NEW_VERSION}" v${NEW_VERSION}
@git push --follow-tags