A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.
fix(release): restore glibc SQLite bindings in Debian archives (#7098)
Thomas1c68bae07511
diff --git a/.github/actions/extract-build-artifact/action.yaml b/.github/actions/extract-build-artifact/action.yamlindex 663fc0a3b..67ed96ee0 100644--- a/.github/actions/extract-build-artifact/action.yaml+++ b/.github/actions/extract-build-artifact/action.yaml@@ -16,41 +16,54 @@ inputs:token:description: GitHub token with permissions to upload release assetsrequired: true+ upload:+ description: Upload validated archives to the release+ default: "true"runs:using: "composite"steps:+ - name: Prebuilt debian dependencies+ uses: ./.github/actions/prebuilt-debian+ id: prebuilt-debian+ with:+ architecture: ${{ inputs.architecture }}- name: Start docker container for ${{ inputs.architecture }}+ id: extraction-containerrun: |- docker run --name homarr \+ docker run --name homarr-extraction-${{ inputs.architecture }} \-e "SECRET_ENCRYPTION_KEY=0000000000000000000000000000000000000000000000000000000000000000" \--detach --rm ${{ inputs.digest }}shell: bash- name: Prepare extractionrun: |- docker exec homarr cp /etc/nginx/templates/nginx.conf /app && \+ docker exec homarr-extraction-${{ inputs.architecture }} cp /etc/nginx/templates/nginx.conf /app && \mkdir -p ${{ runner.temp }}/extraction/${{ inputs.architecture }}shell: bash- name: Extract source from ${{ inputs.architecture }} container (alpine)run: |- docker exec homarr tar -czf extraction-alpine.tar.gz -C /app . && \- docker cp homarr:/app/extraction-alpine.tar.gz ${{ runner.temp }}/extraction/${{ inputs.architecture }}/build-alpine-${{ inputs.architecture }}.tar.gz && \- docker exec homarr rm /app/extraction-alpine.tar.gz+ docker exec homarr-extraction-${{ inputs.architecture }} tar -czf extraction-alpine.tar.gz -C /app . && \+ docker cp homarr-extraction-${{ inputs.architecture }}:/app/extraction-alpine.tar.gz ${{ runner.temp }}/extraction/${{ inputs.architecture }}/build-alpine-${{ inputs.architecture }}.tar.gz && \+ docker exec homarr-extraction-${{ inputs.architecture }} rm /app/extraction-alpine.tar.gzshell: bash- name: Extract source from ${{ inputs.architecture }} container (debian)run: |- docker exec homarr tar -czf extraction-debian.tar.gz -C /app . && \- docker cp homarr:/app/extraction-debian.tar.gz ${{ runner.temp }}/extraction/${{ inputs.architecture }}/build-debian-${{ inputs.architecture }}.tar.gz+ docker cp ${{ steps.prebuilt-debian.outputs.path }}/better_sqlite3.node homarr-extraction-${{ inputs.architecture }}:/app/build/better_sqlite3.node && \+ docker cp ${{ steps.prebuilt-debian.outputs.path }}/better_sqlite3.node homarr-extraction-${{ inputs.architecture }}:/app/node_modules/better-sqlite3/build/Release/better_sqlite3.node && \+ docker exec homarr-extraction-${{ inputs.architecture }} tar -czf extraction-debian.tar.gz -C /app . && \+ docker cp homarr-extraction-${{ inputs.architecture }}:/app/extraction-debian.tar.gz ${{ runner.temp }}/extraction/${{ inputs.architecture }}/build-debian-${{ inputs.architecture }}.tar.gzshell: bash- name: Stop ${{ inputs.architecture }} container- if: always()- run: docker container remove --force --volumes homarr+ if: always() && steps.extraction-container.outcome == 'success'+ run: docker container remove --force --volumes homarr-extraction-${{ inputs.architecture }}shell: bash- name: Add build archive to release (alpine)+ if: inputs.upload == 'true'env:GH_TOKEN: ${{ inputs.token }}run: gh release upload --repo ${{ inputs.repository }} ${{ inputs.release-tag }} ${{ runner.temp }}/extraction/${{ inputs.architecture }}/build-alpine-${{ inputs.architecture }}.tar.gz --clobbershell: bash- name: Add build archive to release (debian)+ if: inputs.upload == 'true'env:GH_TOKEN: ${{ inputs.token }}run: gh release upload --repo ${{ inputs.repository }} ${{ inputs.release-tag }} ${{ runner.temp }}/extraction/${{ inputs.architecture }}/build-debian-${{ inputs.architecture }}.tar.gz --clobberdiff --git a/.github/workflows/on-pr-prebuilt-debian-validate.yml b/.github/workflows/on-pr-prebuilt-debian-validate.ymlindex 2f049ed38..9300e152b 100644--- a/.github/workflows/on-pr-prebuilt-debian-validate.yml+++ b/.github/workflows/on-pr-prebuilt-debian-validate.yml@@ -6,40 +6,33 @@ permissions:on:pull_request:branches: ["**"]- paths: [".github/actions/prebuilt-debian/**", "deployments/prebuilt-debian/**"]+ paths:+ - ".github/actions/prebuilt-debian/**"+ - ".github/actions/extract-build-artifact/**"+ - "deployments/prebuilt-debian/**"+ - ".github/workflows/on-pr-prebuilt-debian-validate.yml"jobs:- prebuilt-debian-validate-amd64:- runs-on: ubuntu-latest- timeout-minutes: 5+ prebuilt-debian-validate:+ strategy:+ fail-fast: false+ matrix:+ include:+ - architecture: amd64+ runner: ubuntu-latest+ - architecture: arm64+ runner: ubuntu-24.04-arm+ runs-on: ${{ matrix.runner }}+ timeout-minutes: 10steps:- uses: actions/checkout@v7- - name: Validate prebuilt dependencies for amd64- id: validate-amd64- uses: ./.github/actions/prebuilt-debian+ - name: Validate Debian archive for ${{ matrix.architecture }}+ uses: ./.github/actions/extract-build-artifactwith:- architecture: amd64-- - name: Check extracted files for amd64- run: |- if [ ! -f "${{ steps.validate-amd64.outputs.path }}/better_sqlite3.node" ]; then- echo "better_sqlite3.node not found for amd64!"- exit 1- fi- prebuilt-debian-validate-arm64:- runs-on: ubuntu-24.04-arm- timeout-minutes: 5- steps:- - uses: actions/checkout@v7- - name: Validate prebuilt dependencies for arm64- id: validate-arm64- uses: ./.github/actions/prebuilt-debian- with:- architecture: arm64-- - name: Check extracted files for arm64- run: |- if [ ! -f "${{ steps.validate-arm64.outputs.path }}/better_sqlite3.node" ]; then- echo "better_sqlite3.node not found for arm64!"- exit 1- fi+ # This Alpine release image reproduces #7097 without the Debian replacement.+ digest: ghcr.io/homarr-labs/homarr:v2.3.0+ architecture: ${{ matrix.architecture }}+ release-tag: v2.3.0+ repository: ${{ github.repository }}+ token: ${{ github.token }}+ upload: "false"