Skip to content

Commit

Permalink
Merge pull request #359 from digitalocean/match-semver-without-bash
Browse files Browse the repository at this point in the history
Match semver without bash
  • Loading branch information
Timo Reimann authored Oct 15, 2020
2 parents 70f543d + 119723a commit af7331c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ build:
push:
# Permit releasing to the canonical container repository only if VERSION adheres to semver.
ifeq ($(DOCKER_REPO),digitalocean/do-csi-plugin)
@[[ "${VERSION}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$$ ]] || ( echo "VERSION "${VERSION}" does not adhere to semver"; exit 1 )
@echo "${VERSION}" | grep -Eq "^v[0-9]+\.[0-9]+\.[0-9]+$$" || ( echo "VERSION \"${VERSION}\" does not adhere to semver"; exit 1 )
endif
@echo "==> Publishing $(DOCKER_REPO):$(VERSION)"
@docker push $(DOCKER_REPO):$(VERSION)
Expand Down

0 comments on commit af7331c

Please sign in to comment.