Skip to content

Commit

Permalink
ci(Makefile): fix make all/latest
Browse files Browse the repository at this point in the history
  • Loading branch information
pinglin committed Aug 6, 2024
1 parent 4bf5b61 commit cf9b600
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ endif

.PHONY: build-latest
build-latest: ## Build latest images for all Instill Core components
@docker build --progress plain \
--build-arg ALPINE_VERSION=${ALPINE_VERSION} \
--build-arg GOLANG_VERSION=${GOLANG_VERSION} \
--build-arg K6_VERSION=${K6_VERSION} \
--build-arg CACHE_DATE="$(shell date)" \
--target latest \
-t ${INSTILL_CORE_IMAGE_NAME}:latest .
@if [ "${BUILD}" = "true" ]; then \
docker build --progress plain \
--build-arg ALPINE_VERSION=${ALPINE_VERSION} \
--build-arg GOLANG_VERSION=${GOLANG_VERSION} \
--build-arg K6_VERSION=${K6_VERSION} \
--build-arg CACHE_DATE="$(shell date)" \
--target latest \
-t ${INSTILL_CORE_IMAGE_NAME}:latest .; \
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ./.env:/instill-core/.env \
Expand All @@ -103,7 +103,8 @@ build-latest: ## Build latest images for all Instill Core components

.PHONY: build-release
build-release: ## Build release images for all Instill Core components
@docker build --progress plain \
@if [ "${BUILD}" = "true" ]; then \
docker build --progress plain \
--build-arg ALPINE_VERSION=${ALPINE_VERSION} \
--build-arg GOLANG_VERSION=${GOLANG_VERSION} \
--build-arg K6_VERSION=${K6_VERSION} \
Expand All @@ -115,8 +116,7 @@ build-release: ## Build release images for all Instill Core components
--build-arg ARTIFACT_BACKEND_VERSION=${ARTIFACT_BACKEND_VERSION} \
--build-arg CONSOLE_VERSION=${CONSOLE_VERSION} \
--target release \
-t ${INSTILL_CORE_IMAGE_NAME}:${INSTILL_CORE_VERSION} .
@if [ "${BUILD}" = "true" ]; then \
-t ${INSTILL_CORE_IMAGE_NAME}:${INSTILL_CORE_VERSION} .; \
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ./.env:/instill-core/.env \
Expand Down

0 comments on commit cf9b600

Please sign in to comment.