You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci(workflows): adopt short commit hash for service version (#1034)
Because
- the service version for the repo commit head at the moment is tagged
using the long commit hash. We'd like to keep it short.
This commit
- update the build-time versioning logic.
@docker compose ls -q | grep -q "instill-core"&&true||\
16
-
(echo "Error: Run \"make latest PROFILE=exclude-pipeline\" in instill-core repository (https://github.com/instill-ai/instill-core) in your local machine first."&&exit 1)
16
+
(echo "Error: Run \"make latest\" in instill-core repository (https://github.com/instill-ai/instill-core) in your local machine first and run \"docker rm -f ${SERVICE_NAME}${SERVICE_NAME}-worker\"."&&exit 1)
17
17
@docker inspect --type container ${SERVICE_NAME}>/dev/null 2>&1&&echo"A container named ${SERVICE_NAME} is already running."||\
18
18
echo"Run dev container ${SERVICE_NAME}. To stop it, run \"make stop\"."
19
19
@docker run -d --rm \
@@ -28,12 +28,17 @@ dev: ## Run dev container
28
28
.PHONY: latest
29
29
latest: ## Run latest container
30
30
@docker compose ls -q | grep -q "instill-core"&&true||\
31
-
(echo "Error: Run \"make latest PROFILE=exclude-pipeline\" in instill-core repository (https://github.com/instill-ai/instill-core) in your local machine first."&&exit 1)
31
+
(echo "Error: Run \"make latest\" in instill-core repository (https://github.com/instill-ai/instill-core) in your local machine first and run \"docker rm -f ${SERVICE_NAME}${SERVICE_NAME}-worker\"."&&exit 1)
32
32
@docker inspect --type container ${SERVICE_NAME}>/dev/null 2>&1&&echo"A container named ${SERVICE_NAME} is already running."||\
33
33
echo"Run latest container ${SERVICE_NAME} and ${SERVICE_NAME}-worker. To stop it, run \"make stop\"."
0 commit comments