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
Raw Permalink Normal View History

2022-03-16 14:03:53 +01:00
VERSION := 0.5.0
2022-03-06 04:29:16 +01:00
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-03-06 04:29:16 +01:00
@sd "VERSION := ${VERSION}" "VERSION := ${NEW_VERSION}" Makefile
2022-03-06 04:29:22 +01:00
@cargo update --package=clear-docker-images
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