Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
chore: seperate next builds
Kyle Mendellf09994959a44
diff --git a/.depot/actions/publish-images/action.yml b/.depot/actions/publish-images/action.ymlnew file mode 100644index 000000000..a0601286c--- /dev/null+++ b/.depot/actions/publish-images/action.yml@@ -0,0 +1,71 @@+name: Publish next registry images+description: Build and sign manager and agent images for one registry+inputs:+ registry:+ description: Destination registry+ required: true+ username:+ description: Registry username+ required: true+ password:+ description: Registry password+ required: true+runs:+ using: composite+ steps:+ - name: Setup Just+ uses: extractions/setup-just@v4++ - name: Setup Vite++ uses: voidzero-dev/setup-vp@9446e853b27985e00fb1b21193be026fc09198db+ with:+ node-version: 26+ cache: true+ run-install: true++ - name: Setup Go+ uses: actions/setup-go@v7+ with:+ go-version-file: backend/go.mod+ cache-dependency-path: backend/go.sum++ - name: Set up Depot CLI+ uses: depot/setup-action@v1+ with:+ configure-docker: true++ - name: Login to destination registry+ uses: docker/login-action@v4+ with:+ registry: ${{ inputs.registry }}+ username: ${{ inputs.username }}+ password: ${{ inputs.password }}++ - name: Install cosign+ uses: sigstore/[email protected]++ - name: Validate destination registry+ shell: bash+ run: |+ case '${{ inputs.registry }}' in+ ghcr.io|docker.io|quay.io) ;;+ *) echo 'Unsupported image registry' >&2; exit 1 ;;+ esac++ - name: Capture frontend build versions+ id: frontend-versions+ shell: bash+ run: |+ echo "node_version=$(node --version)" >> "$GITHUB_OUTPUT"+ echo "sveltekit_version=$(vp -C frontend node -p 'require("@sveltejs/kit/package.json").version')" >> "$GITHUB_OUTPUT"++ - name: Run GoReleaser+ uses: goreleaser/goreleaser-action@v7+ with:+ distribution: goreleaser-pro+ version: '~> 2'+ args: release --clean --nightly --skip=announce,validate,archive,nfpm,notarize,homebrew+ env:+ IMAGE_REGISTRY: ${{ inputs.registry }}+ NODE_VERSION: ${{ steps.frontend-versions.outputs.node_version }}+ SVELTEKIT_VERSION: ${{ steps.frontend-versions.outputs.sveltekit_version }}diff --git a/.depot/workflows/build-next-images.yml b/.depot/workflows/build-next-images.ymlindex 5bfd487e2..53a9b6153 100644--- a/.depot/workflows/build-next-images.yml+++ b/.depot/workflows/build-next-images.yml@@ -15,7 +15,28 @@ permissions:packages: writejobs:+ next-version:+ runs-on: depot-ubuntu-24.04-4+ outputs:+ version: ${{ steps.next-version.outputs.version }}+ previous-tag: ${{ steps.next-version.outputs.previous_tag }}+ steps:+ - name: Checkout code+ uses: actions/checkout@v7+ with:+ fetch-depth: 0++ - name: Setup version tools+ uses: taiki-e/install-action@v2+ with:+ tool: just,git-cliff++ - name: Compute next image version+ id: next-version+ run: just next-image-version github-output+build-next-images:+ needs: next-versionruns-on: depot-ubuntu-24.04-32steps:@@ -29,11 +50,6 @@ jobs:with:tool: just- - name: Setup git-cliff- uses: taiki-e/install-action@v2- with:- tool: git-cliff-- name: Setup Vite+uses: voidzero-dev/setup-vp@9446e853b27985e00fb1b21193be026fc09198dbwith:@@ -53,29 +69,6 @@ jobs:- name: Install cosignuses: sigstore/[email protected]- - name: Set up Depot CLI- uses: depot/setup-action@v1- with:- configure-docker: true-- - name: Login to container registries- uses: docker/login-action@v4- with:- registry-auth: |- - registry: ghcr.io- username: ${{ vars.GHCR_USERNAME }}- password: ${{ secrets.ARCANE_BOT_TOKEN }}- - registry: quay.io- username: ${{ secrets.QUAY_USERNAME }}- password: ${{ secrets.QUAY_TOKEN }}- - registry: docker.io- username: ${{ secrets.DOCKER_USER }}- password: ${{ secrets.DOCKER_PAT }}-- - name: Compute next image version- id: next-version- run: just next-image-version github-output-- name: Capture frontend build versionsid: frontend-versionsrun: |@@ -97,7 +90,7 @@ jobs:with:distribution: goreleaser-proversion: '~> 2'- args: release --clean --nightly --skip=announce,validate,homebrew+ args: release --clean --nightly --skip=announce,validate,homebrew,dockerenv:GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}@@ -105,8 +98,8 @@ jobs:BUILD_NEXT: 'true'SKIP_RELEASE: 'true'SKIP_CHANGELOG: 'true'- NEXT_IMAGE_VERSION: ${{ steps.next-version.outputs.version }}- GORELEASER_PREVIOUS_TAG: ${{ steps.next-version.outputs.previous_tag }}+ NEXT_IMAGE_VERSION: ${{ needs.next-version.outputs.version }}+ GORELEASER_PREVIOUS_TAG: ${{ needs.next-version.outputs.previous-tag }}NODE_VERSION: ${{ steps.frontend-versions.outputs.node_version }}SVELTEKIT_VERSION: ${{ steps.frontend-versions.outputs.sveltekit_version }}GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}@@ -123,3 +116,44 @@ jobs:R2_BUCKET: ${{ secrets.R2_BUCKET }}NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}++ publish-images:+ name: Publish ${{ matrix.registry }}+ needs: next-version+ runs-on: depot-ubuntu-24.04-32+ strategy:+ fail-fast: false+ matrix:+ include:+ - registry: ghcr.io+ username-secret: GHCR_USERNAME+ password-secret: ARCANE_BOT_TOKEN+ - registry: docker.io+ username-secret: DOCKER_USER+ password-secret: DOCKER_PAT+ - registry: quay.io+ username-secret: QUAY_USERNAME+ password-secret: QUAY_TOKEN++ steps:+ - name: Checkout code+ uses: actions/checkout@v7+ with:+ fetch-depth: 0++ - name: Publish registry images+ uses: ./.depot/actions/publish-images+ with:+ registry: ${{ matrix.registry }}+ username: ${{ matrix.registry == 'ghcr.io' && vars.GHCR_USERNAME || secrets[matrix.username-secret] }}+ password: ${{ secrets[matrix.password-secret] }}+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}+ COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}+ GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}+ BUILD_NEXT: 'true'+ SKIP_RELEASE: 'true'+ SKIP_CHANGELOG: 'true'+ NEXT_IMAGE_VERSION: ${{ needs.next-version.outputs.version }}+ GORELEASER_PREVIOUS_TAG: ${{ needs.next-version.outputs.previous-tag }}diff --git a/.goreleaser.yaml b/.goreleaser.yamlindex b1203602e..6db0273a1 100644--- a/.goreleaser.yaml+++ b/.goreleaser.yaml@@ -93,6 +93,7 @@ builds:mod_timestamp: '{{ .CommitTimestamp }}'- id: arcane-cli+ skip: '{{ if index .Env "IMAGE_REGISTRY" }}true{{ end }}'main: .dir: clibinary: arcane-cli@@ -159,6 +160,7 @@ notarize:signs:- id: cosign-checksums+ if: '{{ not (index .Env "IMAGE_REGISTRY") }}'cmd: cosignartifacts: checksumsignature: '${artifact}.sigstore.json'@@ -173,19 +175,19 @@ signs:checksum:extra_files:- - glob: dist/arcane-cli_linux_amd64_v1/arcane-cli+ - glob: '{{ if not (index .Env "IMAGE_REGISTRY") }}dist/arcane-cli_linux_amd64_v1/arcane-cli{{ end }}'name_template: arcane-cli_linux_amd64- - glob: dist/arcane-cli_linux_arm64_v8.0/arcane-cli+ - glob: '{{ if not (index .Env "IMAGE_REGISTRY") }}dist/arcane-cli_linux_arm64_v8.0/arcane-cli{{ end }}'name_template: arcane-cli_linux_arm64- - glob: dist/arcane-cli_linux_386_sse2/arcane-cli+ - glob: '{{ if not (index .Env "IMAGE_REGISTRY") }}dist/arcane-cli_linux_386_sse2/arcane-cli{{ end }}'name_template: arcane-cli_linux_386- - glob: dist/arcane-cli_linux_arm_7/arcane-cli+ - glob: '{{ if not (index .Env "IMAGE_REGISTRY") }}dist/arcane-cli_linux_arm_7/arcane-cli{{ end }}'name_template: arcane-cli_linux_armv7- - glob: dist/arcane-cli_linux_riscv64_rva20u64/arcane-cli+ - glob: '{{ if not (index .Env "IMAGE_REGISTRY") }}dist/arcane-cli_linux_riscv64_rva20u64/arcane-cli{{ end }}'name_template: arcane-cli_linux_riscv64- - glob: dist/arcane-cli_darwin_amd64_v1/arcane-cli+ - glob: '{{ if not (index .Env "IMAGE_REGISTRY") }}dist/arcane-cli_darwin_amd64_v1/arcane-cli{{ end }}'name_template: arcane-cli_darwin_amd64- - glob: dist/arcane-cli_darwin_arm64_v8.0/arcane-cli+ - glob: '{{ if not (index .Env "IMAGE_REGISTRY") }}dist/arcane-cli_darwin_arm64_v8.0/arcane-cli{{ end }}'name_template: arcane-cli_darwin_arm64nightly:@@ -271,16 +273,17 @@ homebrew_casks:name: homebrew-tapcommit_msg_template: 'chore(brew): update {{ .ProjectName }} to {{ .Tag }}'+# IMAGE_REGISTRY selects one destination in the independent CI image jobs.dockers_v2:- id: arcane-imageids:- arcanedockerfile: docker/Dockerfile-staticimages:- - 'ghcr.io/getarcaneapp/arcane'- - 'ghcr.io/getarcaneapp/manager'- - 'getarcaneapp/manager'- - 'quay.io/getarcaneapp/manager'+ - '{{ if or (not (index .Env "IMAGE_REGISTRY")) (eq (index .Env "IMAGE_REGISTRY") "ghcr.io") }}ghcr.io/getarcaneapp/arcane{{ end }}'+ - '{{ if or (not (index .Env "IMAGE_REGISTRY")) (eq (index .Env "IMAGE_REGISTRY") "ghcr.io") }}ghcr.io/getarcaneapp/manager{{ end }}'+ - '{{ if or (not (index .Env "IMAGE_REGISTRY")) (eq (index .Env "IMAGE_REGISTRY") "docker.io") }}getarcaneapp/manager{{ end }}'+ - '{{ if or (not (index .Env "IMAGE_REGISTRY")) (eq (index .Env "IMAGE_REGISTRY") "quay.io") }}quay.io/getarcaneapp/manager{{ end }}'tags:- '{{ if index .Env "BUILD_NEXT" }}next{{ end }}'- 'v{{ .Version }}'@@ -310,10 +313,10 @@ dockers_v2:- arcane-agentdockerfile: docker/Dockerfile-agent-staticimages:- - 'ghcr.io/getarcaneapp/arcane-headless'- - 'ghcr.io/getarcaneapp/agent'- - 'getarcaneapp/agent'- - 'quay.io/getarcaneapp/agent'+ - '{{ if or (not (index .Env "IMAGE_REGISTRY")) (eq (index .Env "IMAGE_REGISTRY") "ghcr.io") }}ghcr.io/getarcaneapp/arcane-headless{{ end }}'+ - '{{ if or (not (index .Env "IMAGE_REGISTRY")) (eq (index .Env "IMAGE_REGISTRY") "ghcr.io") }}ghcr.io/getarcaneapp/agent{{ end }}'+ - '{{ if or (not (index .Env "IMAGE_REGISTRY")) (eq (index .Env "IMAGE_REGISTRY") "docker.io") }}getarcaneapp/agent{{ end }}'+ - '{{ if or (not (index .Env "IMAGE_REGISTRY")) (eq (index .Env "IMAGE_REGISTRY") "quay.io") }}quay.io/getarcaneapp/agent{{ end }}'tags:- '{{ if index .Env "BUILD_NEXT" }}next{{ end }}'- 'v{{ .Version }}'@@ -379,7 +382,7 @@ blobs:- glob: dist/arcane_*_checksums.txt.sigstore.jsonname_template: arcane-cli_checksums.txt.sigstore.jsoninclude_meta: false- disable: '{{ if not (index .Env "BUILD_NEXT") }}true{{ end }}'+ disable: '{{ if or (index .Env "IMAGE_REGISTRY") (not (index .Env "BUILD_NEXT")) }}true{{ end }}'- provider: s3endpoint: '{{ index .Env "R2_ENDPOINT" }}'@@ -394,7 +397,7 @@ blobs:- glob: dist/arcane_*_checksums.txt.sigstore.jsonname_template: arcane_checksums.txt.sigstore.jsoninclude_meta: false- disable: '{{ if not (index .Env "BUILD_NEXT") }}true{{ end }}'+ disable: '{{ if or (index .Env "IMAGE_REGISTRY") (not (index .Env "BUILD_NEXT")) }}true{{ end }}'changelog:disable: '{{ if isEnvSet "SKIP_CHANGELOG" }}true{{ else if isEnvSet "OPENAI_API_KEY" }}false{{ else }}true{{ end }}'diff --git a/.snyk b/.snykdeleted file mode 100644index e5e0af256..000000000--- a/.snyk+++ /dev/null@@ -1,121 +0,0 @@-# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.-version: v1.25.1-# ignores vulnerabilities until expiry date; change duration by modifying expiry date-ignore:- 'snyk:lic:golang:github.com:hashicorp:go-version:MPL-2.0':- - '*':- reason: >-- MPL-2.0 transitive dependency from Docker Compose pkg/api; accepted- while tracking upstream removal.- expires: 2027-06-21T00:00:00.000Z- created: 2026-06-21T15:57:01.699Z- 'snyk:lic:golang:github.com:hashicorp:go-multierror:MPL-2.0':- - '*':- reason: >-- MPL-2.0 transitive dependency from Docker Compose secret-detector- path; accepted while tracking upstream removal.- expires: 2027-06-21T00:00:00.000Z- created: 2026-06-21T15:57:02.882Z- 'snyk:lic:golang:github.com:hashicorp:go-cleanhttp:MPL-2.0':- - '*':- reason: >-- MPL-2.0 transitive dependency from BuildKit auth provider and Docker- Compose; accepted while tracking upstream removal.- expires: 2027-06-21T00:00:00.000Z- created: 2026-06-21T15:57:04.165Z- 'snyk:lic:golang:github.com:hashicorp:errwrap:MPL-2.0':- - '*':- reason: >-- MPL-2.0 transitive dependency from Docker Compose secret-detector via- go-multierror; accepted while tracking upstream removal.- expires: 2027-06-21T00:00:00.000Z- created: 2026-06-21T15:57:05.545Z- 'snyk:lic:npm:lightningcss-win32-x64-msvc:MPL-2.0':- - '*':- reason: >-- MPL-2.0 transitive dependency from Vite lightningcss toolchain;- accepted while using the Vite frontend stack.- expires: 2027-06-21T00:00:00.000Z- created: 2026-06-21T16:00:24.055Z- 'snyk:lic:npm:lightningcss-win32-arm64-msvc:MPL-2.0':- - '*':- reason: >-- MPL-2.0 transitive dependency from Vite lightningcss toolchain;- accepted while using the Vite frontend stack.- expires: 2027-06-21T00:00:00.000Z- created: 2026-06-21T16:00:25.388Z- 'snyk:lic:npm:lightningcss-linux-x64-musl:MPL-2.0':- - '*':- reason: >-- MPL-2.0 transitive dependency from Vite lightningcss toolchain;- accepted while using the Vite frontend stack.- expires: 2027-06-21T00:00:00.000Z- created: 2026-06-21T16:00:26.769Z- 'snyk:lic:npm:lightningcss-linux-x64-gnu:MPL-2.0':- - '*':- reason: >-- MPL-2.0 transitive dependency from Vite lightningcss toolchain;- accepted while using the Vite frontend stack.- expires: 2027-06-21T00:00:00.000Z- created: 2026-06-21T16:00:27.984Z- 'snyk:lic:npm:lightningcss-linux-arm64-musl:MPL-2.0':- - '*':- reason: >-- MPL-2.0 transitive dependency from Vite lightningcss toolchain;- accepted while using the Vite frontend stack.- expires: 2027-06-21T00:00:00.000Z- created: 2026-06-21T16:00:29.197Z- 'snyk:lic:npm:lightningcss-linux-arm64-gnu:MPL-2.0':- - '*':- reason: >-- MPL-2.0 transitive dependency from Vite lightningcss toolchain;- accepted while using the Vite frontend stack.- expires: 2027-06-21T00:00:00.000Z- created: 2026-06-21T16:00:30.556Z- 'snyk:lic:npm:lightningcss-linux-arm-gnueabihf:MPL-2.0':- - '*':- reason: >-- MPL-2.0 transitive dependency from Vite lightningcss toolchain;- accepted while using the Vite frontend stack.- expires: 2027-06-21T00:00:00.000Z- created: 2026-06-21T16:00:31.816Z- 'snyk:lic:npm:lightningcss-freebsd-x64:MPL-2.0':- - '*':- reason: >-- MPL-2.0 transitive dependency from Vite lightningcss toolchain;- accepted while using the Vite frontend stack.- expires: 2027-06-21T00:00:00.000Z- created: 2026-06-21T16:00:34.045Z- 'snyk:lic:npm:lightningcss-darwin-x64:MPL-2.0':- - '*':- reason: >-- MPL-2.0 transitive dependency from Vite lightningcss toolchain;- accepted while using the Vite frontend stack.- expires: 2027-06-21T00:00:00.000Z- created: 2026-06-21T16:00:35.458Z- 'snyk:lic:npm:lightningcss-darwin-arm64:MPL-2.0':- - '*':- reason: >-- MPL-2.0 transitive dependency from Vite lightningcss toolchain;- accepted while using the Vite frontend stack.- expires: 2027-06-21T00:00:00.000Z- created: 2026-06-21T16:00:36.988Z- 'snyk:lic:npm:lightningcss-android-arm64:MPL-2.0':- - '*':- reason: >-- MPL-2.0 transitive dependency from Vite lightningcss toolchain;- accepted while using the Vite frontend stack.- expires: 2027-06-21T00:00:00.000Z- created: 2026-06-21T16:00:42.034Z- 'snyk:lic:npm:lightningcss:MPL-2.0':- - '*':- reason: >-- MPL-2.0 transitive dependency from Vite lightningcss toolchain;- accepted while using the Vite frontend stack.- expires: 2027-06-21T00:00:00.000Z- created: 2026-06-21T16:00:43.477Z-patch: {}-exclude:- code:- - '**/*_test.go'- - tests/**