diff --git a/.github/workflows/publish_indexify_server.yaml b/.github/workflows/publish_indexify_server.yaml index 6f9102641..86f82e2f1 100644 --- a/.github/workflows/publish_indexify_server.yaml +++ b/.github/workflows/publish_indexify_server.yaml @@ -12,6 +12,11 @@ on: description: Is this a pre-release version? required: false default: false + ref: + type: string + description: The ref to checkout before running the workflow + required: false + default: main permissions: contents: write @@ -48,6 +53,8 @@ jobs: - extract-version steps: - uses: actions/checkout@v4 + with: + ref: ${{ inputs.ref }} - run: mkdir -p /tmp/release - name: Download Artifacts uses: actions/download-artifact@v4 @@ -61,69 +68,69 @@ jobs: mv /tmp/release/indexify-server-linux-amd64/indexify-server /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-linux-amd64 mv /tmp/release/indexify-server-deb-linux-amd64/indexify-server_${{ needs.extract-version.outputs.version }}-1_amd64.deb /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-linux-amd64.deb mv /tmp/release/indexify-server-deb-linux-aarch64/indexify-server_${{ needs.extract-version.outputs.version }}-1_arm64.deb /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-linux-arm64.deb - - name: Create GitHub Release - id: create_release - uses: actions/create-release@v1 - with: - tag_name: "v${{ needs.extract-version.outputs.version }}" - prerelease: ${{ github.event.inputs.prerelease }} - body: ${{ github.event.inputs.release_message }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - #- name: Upload Windows Binary - # uses: actions/upload-release-asset@v1 - # with: - # upload_url: ${{ steps.create_release.outputs.upload_url }} - # asset_path: /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-windows-amd64.exe - # asset_name: indexify-server-${{ needs.extract-version.outputs.version }}-windows-amd64.exe - # asset_content_type: application/octet-stream - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Upload Linux Binary - uses: actions/upload-release-asset@v1 - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-linux-amd64 - asset_name: indexify-server-${{ needs.extract-version.outputs.version }}-linux-amd64 - asset_content_type: application/octet-stream - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Upload macOS Binary - uses: actions/upload-release-asset@v1 - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-darwin-arm64 - asset_name: indexify-server-${{ needs.extract-version.outputs.version }}-darwin-arm64 - asset_content_type: application/octet-stream - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # - name: Upload macOS x86 Binary + # - name: Create GitHub Release + # id: create_release + # uses: actions/create-release@v1 + # with: + # tag_name: "v${{ needs.extract-version.outputs.version }}" + # prerelease: ${{ github.event.inputs.prerelease }} + # body: ${{ github.event.inputs.release_message }} + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # #- name: Upload Windows Binary + # # uses: actions/upload-release-asset@v1 + # # with: + # # upload_url: ${{ steps.create_release.outputs.upload_url }} + # # asset_path: /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-windows-amd64.exe + # # asset_name: indexify-server-${{ needs.extract-version.outputs.version }}-windows-amd64.exe + # # asset_content_type: application/octet-stream + # # env: + # # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # - name: Upload Linux Binary # uses: actions/upload-release-asset@v1 # with: # upload_url: ${{ steps.create_release.outputs.upload_url }} - # asset_path: /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-darwin-amd64 - # asset_name: indexify-server-${{ needs.extract-version.outputs.version }}-darwin-amd64 + # asset_path: /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-linux-amd64 + # asset_name: indexify-server-${{ needs.extract-version.outputs.version }}-linux-amd64 + # asset_content_type: application/octet-stream + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # - name: Upload macOS Binary + # uses: actions/upload-release-asset@v1 + # with: + # upload_url: ${{ steps.create_release.outputs.upload_url }} + # asset_path: /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-darwin-arm64 + # asset_name: indexify-server-${{ needs.extract-version.outputs.version }}-darwin-arm64 + # asset_content_type: application/octet-stream + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # # - name: Upload macOS x86 Binary + # # uses: actions/upload-release-asset@v1 + # # with: + # # upload_url: ${{ steps.create_release.outputs.upload_url }} + # # asset_path: /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-darwin-amd64 + # # asset_name: indexify-server-${{ needs.extract-version.outputs.version }}-darwin-amd64 + # # asset_content_type: application/octet-stream + # # env: + # # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # - name: Upload Linux Deb Package for amd64 + # uses: actions/upload-release-asset@v1 + # with: + # upload_url: ${{ steps.create_release.outputs.upload_url }} + # asset_path: /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-linux-amd64.deb + # asset_name: indexify-server-${{ needs.extract-version.outputs.version }}-linux-amd64.deb + # asset_content_type: application/octet-stream + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # - name: Upload Linux Deb Package for arm64 + # uses: actions/upload-release-asset@v1 + # with: + # upload_url: ${{ steps.create_release.outputs.upload_url }} + # asset_path: /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-linux-arm64.deb + # asset_name: indexify-server-${{ needs.extract-version.outputs.version }}-linux-arm64.deb # asset_content_type: application/octet-stream # env: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Upload Linux Deb Package for amd64 - uses: actions/upload-release-asset@v1 - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-linux-amd64.deb - asset_name: indexify-server-${{ needs.extract-version.outputs.version }}-linux-amd64.deb - asset_content_type: application/octet-stream - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Upload Linux Deb Package for arm64 - uses: actions/upload-release-asset@v1 - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-linux-arm64.deb - asset_name: indexify-server-${{ needs.extract-version.outputs.version }}-linux-arm64.deb - asset_content_type: application/octet-stream - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: install reprepro run: sudo apt-get update && sudo apt-get install -y reprepro - name: Run reprepro @@ -132,6 +139,7 @@ jobs: (cd .repo && reprepro includedeb buster /tmp/release/*.deb) (cd .repo && reprepro includedeb focal /tmp/release/*.deb) (cd .repo && reprepro includedeb jammy /tmp/release/*.deb) + (cd .repo && reprepro includedeb noble /tmp/release/*.deb) ls .repo/ - uses: ryand56/r2-upload-action@latest with: diff --git a/server/dockerfiles/Dockerfile.builder_linux_aarch64 b/server/dockerfiles/Dockerfile.builder_linux_aarch64 index 02cf458f8..d7986af06 100644 --- a/server/dockerfiles/Dockerfile.builder_linux_aarch64 +++ b/server/dockerfiles/Dockerfile.builder_linux_aarch64 @@ -1,4 +1,4 @@ -FROM ubuntu:24.04 +FROM ubuntu:22.04 RUN apt-get update && \ apt-get install --assume-yes --no-install-recommends \ diff --git a/server/dockerfiles/Dockerfile.builder_linux_x86 b/server/dockerfiles/Dockerfile.builder_linux_x86 index e4b8d60a2..1d0c46fc2 100644 --- a/server/dockerfiles/Dockerfile.builder_linux_x86 +++ b/server/dockerfiles/Dockerfile.builder_linux_x86 @@ -1,4 +1,4 @@ -FROM ubuntu:24.04 +FROM ubuntu:22.04 RUN apt-get update && \ apt-get install --assume-yes --no-install-recommends \