From 1be806eb8e5fa63cdff192086fd6e57004c34f97 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sat, 8 Mar 2025 23:31:10 -0800 Subject: [PATCH] docker: add router builds --- .github/workflows/docker.yml | 7 +++++-- install/docker/{router/Dockerfile => Dockerfile.router} | 0 2 files changed, 5 insertions(+), 2 deletions(-) rename install/docker/{router/Dockerfile => Dockerfile.router} (100%) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 600be778b..085608652 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -23,6 +23,7 @@ jobs: ["noble-nvidia", ".s6"], ["noble-full", ".s6"], ["noble-lite", ""], + ["noble-lite", ".router"], ] steps: - name: Check out the repo @@ -98,12 +99,14 @@ jobs: ${{ matrix.BASE[0] == 'noble-full' && format('koush/scrypted:{0}', github.event.inputs.tag) || '' }} ${{ github.event.inputs.tag == 'latest' && matrix.BASE[0] == 'noble-nvidia' && 'koush/scrypted:nvidia' || '' }} ${{ github.event.inputs.tag == 'latest' && matrix.BASE[0] == 'noble-full' && 'koush/scrypted:full' || '' }} - ${{ github.event.inputs.tag == 'latest' && matrix.BASE[0] == 'noble-lite' && 'koush/scrypted:lite' || '' }} + ${{ github.event.inputs.tag == 'latest' && matrix.BASE[0] == 'noble-lite' && matrix.BASE[1] == '' && 'koush/scrypted:lite' || '' }} + ${{ github.event.inputs.tag == 'latest' && matrix.BASE[0] == 'noble-lite' && matrix.BASE[1] == '.router' && 'koush/scrypted:router' || '' }} ${{ format('ghcr.io/koush/scrypted:v{1}-{0}', matrix.BASE[0], github.event.inputs.publish_tag || steps.package-version.outputs.NPM_VERSION) }} ${{ matrix.BASE[0] == 'noble-full' && format('ghcr.io/koush/scrypted:{0}', github.event.inputs.tag) || '' }} ${{ github.event.inputs.tag == 'latest' && matrix.BASE[0] == 'noble-nvidia' && 'ghcr.io/koush/scrypted:nvidia' || '' }} ${{ github.event.inputs.tag == 'latest' && matrix.BASE[0] == 'noble-full' && 'ghcr.io/koush/scrypted:full' || '' }} - ${{ github.event.inputs.tag == 'latest' && matrix.BASE[0] == 'noble-lite' && 'ghcr.io/koush/scrypted:lite' || '' }} + ${{ github.event.inputs.tag == 'latest' && matrix.BASE[0] == 'noble-lite' && matrix.BASE[1] == '' && 'ghcr.io/koush/scrypted:lite' || '' }} + ${{ github.event.inputs.tag == 'latest' && matrix.BASE[0] == 'noble-lite' && matrix.BASE[1] == '.router' && 'ghcr.io/koush/scrypted:router' || '' }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/install/docker/router/Dockerfile b/install/docker/Dockerfile.router similarity index 100% rename from install/docker/router/Dockerfile rename to install/docker/Dockerfile.router