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

15 lines
488 B
Makefile

VERSION := 0.5.0
.PHONY: bump-version
bump-version:
@type sd > /dev/null
@echo "Bump version to \"${NEW_VERSION}\""
@sd "version = \"${VERSION}\"" "version = \"${NEW_VERSION}\"" Cargo.toml
@sd "VERSION=${VERSION}" "VERSION=${NEW_VERSION}" .env
@sd "VERSION := ${VERSION}" "VERSION := ${NEW_VERSION}" Makefile
@cargo update --package=clear-docker-images
@git add .
@git commit -m "bump v${NEW_VERSION}"
@git tag -m "bump v${NEW_VERSION}" v${NEW_VERSION}
@git push --follow-tags