Skip to content

Modern Docker Management, Designed for Everyone

ci/cd: use sequential workflow and single binary command

Kyle Mendell826ecd36624c
diff --git a/.github/workflows/build-next-images.yml b/.github/workflows/build-next-images.yml
index c492270fb..a4b4d551e 100644
--- a/.github/workflows/build-next-images.yml
+++ b/.github/workflows/build-next-images.yml
@@ -16,9 +16,8 @@ permissions:
id-token: write
jobs:
- build-binaries:
- name: Build Binaries
- runs-on: depot-ubuntu-latest
+ build-next-images:
+ runs-on: depot-ubuntu-24.04-16
timeout-minutes: 30
steps:
- name: Checkout code
@@ -35,6 +34,9 @@ jobs:
node-version: 25
cache: pnpm
+ - name: Set up Depot CLI
+ uses: depot/setup-action@v1
+
- name: Install frontend deps
run: pnpm -C frontend install --frozen-lockfile
@@ -47,51 +49,16 @@ jobs:
go-version-file: backend/go.mod
cache-dependency-path: backend/go.sum
- - name: Build manager binaries
+ - name: Build manager and agent binaries
run: |
chmod +x ./scripts/github/build-binaries.sh
- VERSION=next REVISION=${{ github.sha }} ./scripts/github/build-binaries.sh
-
- - name: Build agent binaries
- run: |
- VERSION=next REVISION=${{ github.sha }} ./scripts/github/build-binaries.sh --agent
+ VERSION=next REVISION=${{ github.sha }} ./scripts/github/build-binaries.sh --next-builds
- name: List built binaries
run: |
echo "Listing backend/.bin/:"
ls -la backend/.bin/ || echo "Directory not found"
- - name: Upload binaries
- uses: actions/upload-artifact@v4
- with:
- name: binaries
- path: backend/.bin/
- retention-days: 1
-
- build-manager-image:
- name: Build Manager Image
- runs-on: depot-ubuntu-latest
- needs: build-binaries
- timeout-minutes: 30
- steps:
- - name: Checkout code
- uses: actions/checkout@v6
-
- - name: Download binaries
- uses: actions/download-artifact@v4
- with:
- name: binaries
- path: backend/.bin/
-
- - name: Set up Depot CLI
- uses: depot/setup-action@v1
-
- - name: Resolve Docker image name
- id: image-name
- run: |
- REPO_OWNER=${{ github.repository_owner }}
- echo "value=ghcr.io/${REPO_OWNER,,}/arcane" >> $GITHUB_OUTPUT
-
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
@@ -99,56 +66,32 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- - name: Build and push container image
+ - name: Resolve Docker image names
+ id: image-names
+ run: |
+ REPO_OWNER=${{ github.repository_owner }}
+ echo "manager=ghcr.io/${REPO_OWNER,,}/arcane" >> $GITHUB_OUTPUT
+ echo "agent=ghcr.io/${REPO_OWNER,,}/arcane-headless" >> $GITHUB_OUTPUT
+
+ - name: Build and push manager image
uses: depot/build-push-action@v1
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
- tags: ${{ steps.image-name.outputs.value }}:next
+ tags: ${{ steps.image-names.outputs.manager }}:next
file: docker/Dockerfile-static
build-args: |
VERSION=next
REVISION=${{ github.sha }}
- build-agent-image:
- name: Build Agent Image
- runs-on: depot-ubuntu-latest
- needs: build-binaries
- timeout-minutes: 30
- steps:
- - name: Checkout code
- uses: actions/checkout@v6
-
- - name: Download binaries
- uses: actions/download-artifact@v4
- with:
- name: binaries
- path: backend/.bin/
-
- - name: Set up Depot CLI
- uses: depot/setup-action@v1
-
- - name: Resolve Docker image name
- id: image-name
- run: |
- REPO_OWNER=${{ github.repository_owner }}
- echo "value=ghcr.io/${REPO_OWNER,,}/arcane-headless" >> $GITHUB_OUTPUT
-
- - 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 and push container image
+ - name: Build and push agent image
uses: depot/build-push-action@v1
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
- tags: ${{ steps.image-name.outputs.value }}:next
+ tags: ${{ steps.image-names.outputs.agent }}:next
file: docker/Dockerfile-agent-static
build-args: |
VERSION=next
diff --git a/frontend/src/lib/components/arcane-table/arcane-table.svelte b/frontend/src/lib/components/arcane-table/arcane-table.svelte
index 65be614cf..22472aac7 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table.svelte
@@ -16,7 +16,6 @@
import * as Table from '$lib/components/ui/table/index.js';
import * as Card from '$lib/components/ui/card/index.js';
import * as DropdownMenu from '$lib/components/ui/dropdown-menu/index.js';
- import { mode } from 'mode-watcher';
import { renderComponent, renderSnippet } from '$lib/components/ui/data-table/render-helpers.js';
import { Button } from '$lib/components/ui/button/index.js';
import ChevronRightIcon from '@lucide/svelte/icons/chevron-right';
@@ -434,11 +433,11 @@
<span class="max-w-[500px] truncate">{value ?? ''}</span>
{/snippet}
-{#snippet PlainHeader({ title, class: className, ...restProps }: { title: string } & HTMLAttributes<HTMLDivElement>)}
+{#snippet PlainHeader({ title, class: className, ...restProps }: { title: string } & HTMLAttributes)}
<div class={className} {...restProps}>{title}</div>
{/snippet}
-{#snippet Pagination({ table }: { table: TableType<TData> })}
+{#snippet Pagination({ table }: { table: TableType })}
<div class="flex w-full flex-col gap-4 px-2 sm:flex-row sm:items-center sm:justify-between">
<div class="text-muted-foreground order-2 text-sm sm:order-1">
{m.common_showing_of_total({ shown: items.data.length, total: totalItems })}
@@ -491,16 +490,11 @@
</div>
{/snippet}
-{#snippet MobileCard({ row, item }: { row: Row<TData>; item: TData })}
+{#snippet MobileCard({ row, item }: { row: Row; item: TData })}
{@render mobileCard({ row, item, mobileFieldVisibility })}
{/snippet}
-{#snippet ColumnHeader({
- column,
- title,
- class: className,
- ...restProps
-}: { column: Column<TData>; title: string } & HTMLAttributes<HTMLDivElement>)}
+{#snippet ColumnHeader({ column, title, class: className, ...restProps }: { column: Column; title: string } & HTMLAttributes)}
{#if !column?.getCanSort()}
<div class={className} {...restProps}>
{title}
diff --git a/scripts/github/build-binaries.sh b/scripts/github/build-binaries.sh
index b5c3e7f7d..19949bb03 100755
--- a/scripts/github/build-binaries.sh
+++ b/scripts/github/build-binaries.sh
@@ -14,11 +14,13 @@ LDFLAGS="-w -s -buildid=${VERSION} \
DOCKER_ONLY=false
AGENT_BUILD=false
+NEXT_BUILDS=false
for arg in "${@:-}"; do
case "$arg" in
--docker) DOCKER_ONLY=true ;;
--agent) AGENT_BUILD=true ;;
+ --next-builds) NEXT_BUILDS=true ;;
*) ;;
esac
done
@@ -68,7 +70,21 @@ build_platform() {
}
echo "Version: ${VERSION}"
-if [ "$DOCKER_ONLY" = true ] ; then
+if [ "$NEXT_BUILDS" = true ]; then
+ echo "Building next images binaries (manager + agent for linux targets)..."
+ # Build manager binaries
+ BINARY_BASENAME="arcane"
+ BUILD_TAGS=""
+ build_platform "linux-amd64" "linux" "amd64"
+ build_platform "linux-arm64" "linux" "arm64"
+ build_platform "linux-armv7" "linux" "arm" "7"
+ # Build agent binaries
+ BINARY_BASENAME="arcane-agent"
+ BUILD_TAGS="exclude_frontend"
+ build_platform "linux-amd64" "linux" "amd64"
+ build_platform "linux-arm64" "linux" "arm64"
+ build_platform "linux-armv7" "linux" "arm" "7"
+elif [ "$DOCKER_ONLY" = true ]; then
if [ "$AGENT_BUILD" = true ]; then
echo "Building agent binaries (docker-only linux targets)..."
else