Skip to content

Commit 8970d43

Browse files
committed
refactor(Makefile): add APP_VERSION variable
Signed-off-by: Edward Ly <[email protected]>
1 parent ad55103 commit 8970d43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.DEFAULT_GOAL := help
22

33
APP_ID := talk_bot_ai
4-
JSON_INFO := "{\"id\":\"$(APP_ID)\",\"name\":\"Assistant Talk Bot\",\"daemon_config_name\":\"manual_install\",\"version\":\"3.0.0\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[\"TALK\", \"TALK_BOT\"],\"system\":0}"
4+
APP_VERSION := 3.0.0
5+
JSON_INFO := "{\"id\":\"$(APP_ID)\",\"name\":\"Assistant Talk Bot\",\"daemon_config_name\":\"manual_install\",\"version\":\"$(APP_VERSION)\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[\"TALK\", \"TALK_BOT\"],\"system\":0}"
56

67
.PHONY: help
78
help:
@@ -24,7 +25,7 @@ help:
2425
.PHONY: build-push
2526
build-push:
2627
docker login ghcr.io
27-
docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ghcr.io/cloud-py-api/$(APP_ID):3.0.0 --tag ghcr.io/cloud-py-api/$(APP_ID):latest .
28+
docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ghcr.io/cloud-py-api/$(APP_ID):$(APP_VERSION) --tag ghcr.io/cloud-py-api/$(APP_ID):latest .
2829

2930
.PHONY: run
3031
run:

0 commit comments

Comments
 (0)