alpine/semver
Docker tool for semantic versioning
100K+
Docker image with Semantic Versioning 2.0.0
https://github.com/alpine-docker/multi-arch-libs/blob/master/semver/Dockerfile
https://hub.docker.com/r/alpine/semver/tags/
https://app.travis-ci.com/github/alpine-docker/semver
N/A
This feature was added on 21th April 2022.
--platform linux/amd64,linux/arm/v7,linux/arm64/v8,linux/arm/v6,linux/ppc64le,linux/s390x
)amd64
, because I have no other environment to check. If you have any issues with other arch, you need raise PR to fix it.docker pull
, docker run
command with other arch, you can run it as normal. For example, if you need pull image from arm (such as new Mac M1 chip), you can run docker pull alpine/semver
to get the image directly.$ docker run --rm alpine/semver semver -c -i minor 1.0.2
1.1.0
$ docker run --rm marcelocorreia/semver semver -c -i patch 1.1.0
1.1.1
$ docker run --rm marcelocorreia/semver semver -c -i minor $(git describe --tags --abbrev=0)
5.6.0
RELEASE_TYPE ?= patch
CURRENT_VERSION := $(shell git ls-remote --tags | awk '{ print $$2}'| sort -nr | head -n1|sed 's/refs\/tags\///g')
ifndef CURRENT_VERSION
CURRENT_VERSION := 0.0.0
endif
NEXT_VERSION := $(shell docker run --rm alpine/semver semver -c -i $(RELEASE_TYPE) $(CURRENT_VERSION))
current-version:
@echo $(CURRENT_VERSION)
next-version:
@echo $(NEXT_VERSION)
release:
git checkout master;
git tag $(NEXT_VERSION)
git push --tags
docker pull alpine/semver