diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 80a27ee..bf4ea56 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -33,8 +33,8 @@ # # Published Images: # ---------------- -# - GitHub Container Registry: ghcr.io/OWNER/solr-mcp-server:TAG -# - Docker Hub: DOCKERHUB_USERNAME/solr-mcp-server:TAG +# - GitHub Container Registry: ghcr.io/OWNER/solr-mcp:TAG +# - Docker Hub: DOCKERHUB_USERNAME/solr-mcp:TAG # # Image Tagging Strategy: # ---------------------- @@ -114,8 +114,8 @@ jobs: - name: Upload JAR artifact uses: actions/upload-artifact@v4 with: - name: solr-mcp-server-jar - path: build/libs/solr-mcp-server-*.jar + name: solr-mcp-jar + path: build/libs/solr-mcp-*.jar retention-days: 7 # Upload JUnit test results @@ -200,7 +200,7 @@ jobs: # Get version from build.gradle.kts VERSION=$(grep '^version = ' build.gradle.kts | sed 's/version = "\(.*\)"/\1/') echo "version=$VERSION" >> $GITHUB_OUTPUT - + # Determine image tags based on trigger type if [[ "${{ github.ref }}" == refs/tags/v* ]]; then # For version tags (e.g., v1.0.0), use semantic version @@ -271,13 +271,13 @@ jobs: run: | TAGS="${{ steps.meta.outputs.tags }}" IFS=',' read -ra TAG_ARRAY <<< "$TAGS" - + # Build and push each tag to GHCR # Jib automatically handles multi-platform builds (amd64, arm64) for TAG in "${TAG_ARRAY[@]}"; do - echo "Building and pushing ghcr.io/${{ steps.repo.outputs.owner_lc }}/solr-mcp-server:$TAG" + echo "Building and pushing ghcr.io/${{ steps.repo.outputs.owner_lc }}/solr-mcp:$TAG" ./gradlew jib \ - -Djib.to.image=ghcr.io/${{ steps.repo.outputs.owner_lc }}/solr-mcp-server:$TAG \ + -Djib.to.image=ghcr.io/${{ steps.repo.outputs.owner_lc }}/solr-mcp:$TAG \ -Djib.to.auth.username=${{ github.actor }} \ -Djib.to.auth.password=${{ secrets.GITHUB_TOKEN }} done @@ -290,12 +290,12 @@ jobs: run: | TAGS="${{ steps.meta.outputs.tags }}" IFS=',' read -ra TAG_ARRAY <<< "$TAGS" - + # Build and push each tag to Docker Hub for TAG in "${TAG_ARRAY[@]}"; do - echo "Building and pushing ${{ secrets.DOCKERHUB_USERNAME }}/solr-mcp-server:$TAG" + echo "Building and pushing ${{ secrets.DOCKERHUB_USERNAME }}/solr-mcp:$TAG" ./gradlew jib \ - -Djib.to.image=${{ secrets.DOCKERHUB_USERNAME }}/solr-mcp-server:$TAG \ + -Djib.to.image=${{ secrets.DOCKERHUB_USERNAME }}/solr-mcp:$TAG \ -Djib.to.auth.username=${{ secrets.DOCKERHUB_USERNAME }} \ -Djib.to.auth.password=${{ secrets.DOCKERHUB_TOKEN }} done @@ -311,14 +311,14 @@ jobs: TAGS="${{ steps.meta.outputs.tags }}" IFS=',' read -ra TAG_ARRAY <<< "$TAGS" for TAG in "${TAG_ARRAY[@]}"; do - echo "- \`ghcr.io/${{ steps.repo.outputs.owner_lc }}/solr-mcp-server:$TAG\`" >> $GITHUB_STEP_SUMMARY + echo "- \`ghcr.io/${{ steps.repo.outputs.owner_lc }}/solr-mcp:$TAG\`" >> $GITHUB_STEP_SUMMARY done - + # Only show Docker Hub section if secrets are configured if [[ "${{ secrets.DOCKERHUB_USERNAME }}" != "" ]]; then echo "" >> $GITHUB_STEP_SUMMARY echo "#### Docker Hub" >> $GITHUB_STEP_SUMMARY for TAG in "${TAG_ARRAY[@]}"; do - echo "- \`${{ secrets.DOCKERHUB_USERNAME }}/solr-mcp-server:$TAG\`" >> $GITHUB_STEP_SUMMARY + echo "- \`${{ secrets.DOCKERHUB_USERNAME }}/solr-mcp:$TAG\`" >> $GITHUB_STEP_SUMMARY done - fi \ No newline at end of file + fi diff --git a/.run/SolrMcpServerHttp.run.xml b/.run/SolrMcpServerHttp.run.xml index 8038646..ee4a430 100644 --- a/.run/SolrMcpServerHttp.run.xml +++ b/.run/SolrMcpServerHttp.run.xml @@ -2,7 +2,7 @@