From f4b0cbaa769494d09e0d1ad37077803274fa1467 Mon Sep 17 00:00:00 2001 From: Heiru Wu Date: Wed, 6 Mar 2024 02:52:55 +0800 Subject: [PATCH] ci(workflows): adopt latest project structure --- .github/workflows/integration-test.yml | 38 +++++++------------------- 1 file changed, 10 insertions(+), 28 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 2a3875b..e713b1e 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -22,7 +22,7 @@ jobs: fail-fast: false matrix: component: [model-backend] - uses: instill-ai/model/.github/workflows/integration-test-backend.yml@main + uses: instill-ai/instill-core/.github/workflows/integration-test-backend.yml@main with: component: ${{ matrix.component }} target: latest @@ -71,10 +71,10 @@ jobs: envFile: .env - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Build image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: . load: true @@ -83,12 +83,12 @@ jobs: GOLANG_VERSION=${{ env.GOLANG_VERSION }} tags: instill/${{ env.SERVICE_NAME }}:latest - - name: Checkout repo (core) - uses: actions/checkout@v3 + - name: Checkout repo (instill-core) + uses: actions/checkout@v4 with: - repository: instill-ai/core + repository: instill-ai/instill-core - - name: Load .env file (core) + - name: Load .env file (instill-core) uses: cardinalby/export-env-action@v2 with: envFile: .env @@ -97,30 +97,12 @@ jobs: run: | COMPOSE_PROFILES=all \ EDITION=local-ce:test \ - docker compose -f docker-compose.yml -f docker-compose.latest.yml up -d --quiet-pull - COMPOSE_PROFILES=all \ - EDITION=local-ce:test \ - docker compose -f docker-compose.yml -f docker-compose.latest.yml rm -f - - - name: Checkout repo (model) - uses: actions/checkout@v3 - with: - repository: instill-ai/model - - - name: Load .env file (model) - uses: cardinalby/export-env-action@v2 - with: - envFile: .env - - - name: Launch Instill Model (latest) - run: | - EDITION=local-ce:test \ + RAY_LATEST_TAG=latest \ ITMODE_ENABLED=true \ - RAY_PLATFORM=cpu \ + docker compose -f docker-compose.yml -f docker-compose-latest.yml up -d --quiet-pull COMPOSE_PROFILES=all \ - docker compose -f docker-compose.yml -f docker-compose.latest.yml up -d --quiet-pull EDITION=local-ce:test \ - docker compose -f docker-compose.yml -f docker-compose.latest.yml rm -f + docker compose -f docker-compose.yml -f docker-compose-latest.yml rm -f - name: Install k6 run: |