|
55 | 55 | strategy: |
56 | 56 | fail-fast: false |
57 | 57 | matrix: |
58 | | - db: [pgvector, redis, elastic, qdrant] |
| 58 | + db: [pgvector, redis, elastic, qdrant, mssql] |
59 | 59 |
|
60 | 60 | steps: |
| 61 | + - name: Check MSSQL test availability |
| 62 | + if: matrix.db == 'mssql' && ${{ secrets.MSSQL_VECTOR_PASSWORD }} == '' |
| 63 | + run: | |
| 64 | + echo "Skipping MSSQL test: required secrets are missing." |
| 65 | + exit 78 |
| 66 | +
|
61 | 67 | - uses: actions/checkout@v4 |
62 | 68 |
|
63 | 69 | - name: Download image artifact |
|
69 | 75 | - name: Load Docker image |
70 | 76 | run: docker load -i image.tar |
71 | 77 |
|
| 78 | + - name: Log in to registry for SQL-vector preview |
| 79 | + if: matrix.db == 'mssql' |
| 80 | + uses: docker/login-action@v3 |
| 81 | + with: |
| 82 | + registry: ${{ secrets.MSSQL_VECTOR_REGISTRY }} |
| 83 | + username: ${{ secrets.MSSQL_VECTOR_USERNAME }} |
| 84 | + password: ${{ secrets.MSSQL_VECTOR_PASSWORD }} |
| 85 | + |
| 86 | + - name: Pull preview SQL Server-vector image |
| 87 | + if: matrix.db == 'mssql' |
| 88 | + run: | |
| 89 | + docker pull ${{ secrets.MSSQL_VECTOR_REGISTRY }}/mssql-sql2025-ctp1-3-release/mssql-server-rhel9:17.0.400.5_4 |
| 90 | +
|
| 91 | + - name: Start SQL Server-vector |
| 92 | + if: matrix.db == 'mssql' |
| 93 | + run: | |
| 94 | + docker run -d --name mssql-vector-test \ |
| 95 | + -e ACCEPT_EULA=Y \ |
| 96 | + -e MSSQL_SA_PASSWORD=StrongPreviewPass1! \ |
| 97 | + -p 1433:1433 \ |
| 98 | + ${{ secrets.MSSQL_VECTOR_REGISTRY }}/mssql-sql2025-ctp1-3-release/mssql-server-rhel9:17.0.400.5_4 |
| 99 | +
|
72 | 100 | - name: Start PGVector |
73 | 101 | if: matrix.db == 'pgvector' |
74 | 102 | run: | |
@@ -115,7 +143,7 @@ jobs: |
115 | 143 | test-image:${{ needs.build.outputs.image_tag }} |
116 | 144 |
|
117 | 145 | release: |
118 | | - if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') |
| 146 | + if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) && github.event.repository.fork == false |
119 | 147 | runs-on: ubuntu-latest |
120 | 148 | needs: [lint, build, test] |
121 | 149 | steps: |
|
0 commit comments