Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
Update Makefile
  • Loading branch information
haroldsphinx authored Dec 28, 2021
1 parent 1075b6f commit 66f5515
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ REPO=composablefi
SERVICE_NAME=composable
INSTALL_DIR=docker/
IMAGE_URL:=${REPO}/${SERVICE_NAME}
RELEASE_VERSION:=$(shell git tag --sort=committerdate | grep -E '^${CHAIN}[0-9]' | tail -1)
CARGO_VERSION:=$(sed -i '' "s|^version =.*|version = "${VERSION}"|" node/Cargo.toml)
RELEASE_VERSION:=$(shell git tag --sort=committerdate | grep -E '^${CHAIN}-[0-9]' | tail -1 | tr -d '${CHAIN}-')
CARGO_VERSION:=$(shell git tag --sort=committerdate | grep -E '^${CHAIN}-[0-9]' | tail -1 | tr -d '${CHAIN}-')
AUTO_UPDATE:=1


Expand Down Expand Up @@ -51,7 +51,7 @@ dev:
.PHONY: version
version:
@if [ ${RELEASE_VERSION} ]; then \
sed -i "s|^version =.*|version = '"${RELEASE_VERSION}"'|" node/Cargo.toml; \
sed -i "s|^version =.*|version = '"${CARGO_VERSION}"'|" node/Cargo.toml; \
fi;

.PHONY: containerize-release
Expand Down Expand Up @@ -113,4 +113,4 @@ define print_help_text
make stop : Stop all current running containers
make push : Push all built images to the specified docker registry
"
endef
endef

0 comments on commit 66f5515

Please sign in to comment.