Skip to content

Commit

Permalink
chore: disable image build in integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
donch1989 committed Sep 6, 2024
1 parent b11386d commit 743a6a9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration-test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ jobs:
- name: Launch Instill Core (${{ inputs.target }})
run: |
if [ "${{ inputs.target }}" == "latest" ]; then
make latest BUILD=true EDITION=local-ce:test
make latest BUILD_CORE_DEV_IMAGE=true EDITION=local-ce:test
else
make all BUILD=true EDITION=local-ce:test
make all BUILD_CORE_DEV_IMAGE=true EDITION=local-ce:test
fi
- name: Uppercase component name
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-test-console.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: Launch Instill Core (${{ inputs.target }})
run: |
make ${{ inputs.target }} BUILD=true EDITION=local-ce:test INSTILL_CORE_HOST=api-gateway
make ${{ inputs.target }} BUILD_CORE_DEV_IMAGE=true EDITION=local-ce:test INSTILL_CORE_HOST=api-gateway
- name: Run console integration test (${{ inputs.target }})
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/make-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Launch Instill Core (release)
run: |
make all BUILD=true EDITION=local-ce:test
make all BUILD_CORE_DEV_IMAGE=true EDITION=local-ce:test
- name: List all docker containers
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/make-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Launch Instill Core (latest)
run: |
make latest BUILD=true EDITION=local-ce:test
make latest BUILD_CORE_DEV_IMAGE=true EDITION=local-ce:test
- name: List all docker containers
run: |
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ endif

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

.PHONY: build-release
build-release: ## Build release images for all services
@if [ "${BUILD}" = "true" ]; then \
@if [ "${BUILD}" = "true" ] || [ "${BUILD_CORE_DEV_IMAGE}" = "true" ]; then \
docker build --progress plain \
--build-arg ALPINE_VERSION=${ALPINE_VERSION} \
--build-arg GOLANG_VERSION=${GOLANG_VERSION} \
Expand All @@ -119,6 +121,8 @@ build-release: ## Build release images for all services
--build-arg CONSOLE_VERSION=${CONSOLE_VERSION} \
--target release \
-t ${INSTILL_CORE_IMAGE_NAME}:${INSTILL_CORE_VERSION} .; \
fi
@if [ "${BUILD}" = "true" ]; then \
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ./.env:/instill-core/.env \
Expand Down

0 comments on commit 743a6a9

Please sign in to comment.