Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
ci/cd: build next images one after another
Kyle Mendelld06ec4807001
diff --git a/.github/workflows/build-next-images.yml b/.github/workflows/build-next-images.ymlindex e846cf7cf..5ac30620d 100644--- a/.github/workflows/build-next-images.yml+++ b/.github/workflows/build-next-images.yml@@ -11,26 +11,14 @@ concurrency:cancel-in-progress: truejobs:- build-next:+ build-manager:runs-on: release-latestpermissions:contents: readpackages: writeid-token: writeattestations: write- strategy:- fail-fast: false- matrix:- image:- - name: manager- dockerfile: docker/Dockerfile-static- image-name: arcane- build-args: ""- - name: agent- dockerfile: docker/Dockerfile-agent-static- image-name: arcane-headless- build-args: --agent- name: Build Next Image (${{ matrix.image.name }})+ name: Build Next Image (Manager)steps:- name: Checkout codeuses: actions/checkout@v5@@ -57,7 +45,7 @@ jobs:- name: Set DOCKER_IMAGE_NAMErun: |REPO_OWNER=${{ github.repository_owner }}- DOCKER_IMAGE_NAME="ghcr.io/${REPO_OWNER,,}/${{ matrix.image.image-name }}"+ DOCKER_IMAGE_NAME="ghcr.io/${REPO_OWNER,,}/arcane"echo "DOCKER_IMAGE_NAME=${DOCKER_IMAGE_NAME}" >>${GITHUB_ENV}- name: Login to GitHub Container Registry@@ -68,15 +56,13 @@ jobs:password: ${{ secrets.GITHUB_TOKEN }}- name: Install frontend dependencies- if: matrix.image.name == 'manager'run: pnpm --filter arcane-frontend install --frozen-lockfile- name: Build frontend- if: matrix.image.name == 'manager'run: pnpm --filter arcane-frontend build- name: Build binaries- run: bash scripts/github/build-binaries.sh --docker ${{ matrix.image.build-args }}+ run: bash scripts/github/build-binaries.sh --docker- name: Build and push container imageid: build-push-image@@ -86,7 +72,7 @@ jobs:platforms: linux/amd64,linux/arm64push: truetags: ${{ env.DOCKER_IMAGE_NAME }}:next- file: ${{ matrix.image.dockerfile }}+ file: docker/Dockerfile-static- name: Container image attestationuses: actions/attest-build-provenance@v3@@ -94,3 +80,60 @@ jobs:subject-name: "${{ env.DOCKER_IMAGE_NAME }}"subject-digest: ${{ steps.build-push-image.outputs.digest }}push-to-registry: true++ build-agent:+ runs-on: release-latest+ permissions:+ contents: read+ packages: write+ id-token: write+ attestations: write+ name: Build Next Image (Agent)+ needs: build-manager+ steps:+ - name: Checkout code+ uses: actions/checkout@v5++ - name: Setup Go+ uses: actions/setup-go@v6+ with:+ go-version-file: "backend/go.mod"++ - name: Set up QEMU+ uses: docker/setup-qemu-action@v3++ - name: Set up Docker Buildx+ uses: docker/setup-buildx-action@v3++ - name: Set DOCKER_IMAGE_NAME+ run: |+ REPO_OWNER=${{ github.repository_owner }}+ DOCKER_IMAGE_NAME="ghcr.io/${REPO_OWNER,,}/arcane-headless"+ echo "DOCKER_IMAGE_NAME=${DOCKER_IMAGE_NAME}" >>${GITHUB_ENV}++ - name: Login to GitHub Container Registry+ uses: docker/login-action@v3+ with:+ registry: ghcr.io+ username: ${{ github.repository_owner }}+ password: ${{ secrets.GITHUB_TOKEN }}++ - name: Build agent binaries+ run: bash scripts/github/build-binaries.sh --docker --agent++ - name: Build and push agent image+ id: build-push-image+ uses: docker/build-push-action@v6+ with:+ context: .+ file: docker/Dockerfile-agent-static+ platforms: linux/amd64,linux/arm64+ push: true+ tags: ${{ env.DOCKER_IMAGE_NAME }}:next++ - name: Attest build provenance+ uses: actions/attest-build-provenance@v3+ with:+ subject-name: "${{ env.DOCKER_IMAGE_NAME }}"+ subject-digest: ${{ steps.build-push-image.outputs.digest }}+ push-to-registry: truediff --git a/frontend/src/lib/components/mobile-nav/mobile-nav-sheet.svelte b/frontend/src/lib/components/mobile-nav/mobile-nav-sheet.svelteindex cd9304273..4703fce8b 100644--- a/frontend/src/lib/components/mobile-nav/mobile-nav-sheet.svelte+++ b/frontend/src/lib/components/mobile-nav/mobile-nav-sheet.svelte@@ -507,7 +507,7 @@tabindex={0}><!-- Handle indicator -->- <div class="flex justify-center pt-4 pb-3" data-drag-handle>+ <div class="flex justify-center pb-3 pt-4" data-drag-handle><divclass={cn('h-1.5 w-10 rounded-full transition-all duration-150',@@ -529,7 +529,7 @@<div class="space-y-8"><!-- Management --><section>- <h4 class="text-muted-foreground/70 mb-4 px-3 text-[11px] font-bold tracking-widest uppercase">+ <h4 class="text-muted-foreground/70 mb-4 px-3 text-[11px] font-bold uppercase tracking-widest">{m.sidebar_management()}</h4><div class="space-y-2">@@ -556,7 +556,7 @@<!-- Customization --><section>- <h4 class="text-muted-foreground/70 mb-4 px-3 text-[11px] font-bold tracking-widest uppercase">+ <h4 class="text-muted-foreground/70 mb-4 px-3 text-[11px] font-bold uppercase tracking-widest">{m.sidebar_customization()}</h4><div class="space-y-2">@@ -627,7 +627,7 @@<!-- Environments -->{#if navigationItems.environmentItems}<section>- <h4 class="text-muted-foreground/70 mb-4 px-3 text-[11px] font-bold tracking-widest uppercase">+ <h4 class="text-muted-foreground/70 mb-4 px-3 text-[11px] font-bold uppercase tracking-widest">{m.sidebar_environments()}</h4><div class="space-y-2">@@ -654,7 +654,7 @@<!-- Administration -->{#if navigationItems.settingsItems}<section>- <h4 class="text-muted-foreground/70 mb-4 px-3 text-[11px] font-bold tracking-widest uppercase">+ <h4 class="text-muted-foreground/70 mb-4 px-3 text-[11px] font-bold uppercase tracking-widest">{m.sidebar_administration()}</h4><div class="space-y-2">