Skip to content

Modern Docker Management, Designed for Everyone

ci/cd: remove depot shadow workflows

Kyle Mendella5ef6e822bad
diff --git a/.depot/workflows/build-next-images.yml b/.depot/workflows/build-next-images.yml
deleted file mode 100644
index b004d5866..000000000
--- a/.depot/workflows/build-next-images.yml
+++ /dev/null
@@ -1,157 +0,0 @@
-name: Build Next Images
-
-on:
- push:
- branches:
- - main
- workflow_dispatch:
-
-concurrency:
- group: build-next-images
- cancel-in-progress: true
-
-permissions:
- contents: read
- packages: write
- id-token: write
-
-jobs:
- build-next-images:
- runs-on: depot-ubuntu-latest
-
- env:
- MANAGER_IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/arcane
- AGENT_IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/arcane-headless
-
- steps:
- - name: Checkout code
- uses: actions/checkout@v6
-
- - name: Setup PNPM
- uses: pnpm/action-setup@v4
- with:
- run_install: false
-
- - name: Setup Just
- run: curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | sudo bash -s -- --to /usr/local/bin
-
- - name: Setup Node.js
- uses: actions/setup-node@v6
- with:
- node-version: 25
- cache: pnpm
-
- - name: Set up Go
- uses: actions/setup-go@v6
- with:
- go-version-file: backend/go.mod
- cache-dependency-path: backend/go.sum
-
- - name: Set up Depot CLI
- uses: depot/setup-action@v1
-
- - name: Login to GitHub Container Registry
- uses: docker/login-action@v4
- with:
- registry: ghcr.io
- username: ${{ github.repository_owner }}
- password: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Set Short Git Commit SHA
- id: vars
- run: |
- echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
-
- - name: Run GoReleaser
- uses: goreleaser/goreleaser-action@v7
- with:
- distribution: goreleaser-pro
- version: '~> v2'
- args: release --clean --skip=sign,announce,validate,nfpm,homebrew
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- BUILD_NEXT: 'true'
- SKIP_RELEASE: 'true'
- SKIP_CHANGELOG: 'true'
- GORELEASER_CURRENT_TAG: next-static-${{ steps.vars.outputs.sha_short }}
- GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
- R2_ACCESS_KEY: ${{ secrets.R2_ACCESS_KEY }}
- R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
- AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
- R2_ENDPOINT: ${{ secrets.R2_ENDPOINT }}
- R2_BUCKET: ${{ secrets.R2_BUCKET }}
-
- - name: Manager image metadata
- id: manager-meta
- uses: docker/metadata-action@v6
- with:
- images: ${{ env.MANAGER_IMAGE_NAME }}
- tags: |
- type=raw,value=next
- type=raw,value=next-${{ steps.vars.outputs.sha_short }}
- labels: |
- org.opencontainers.image.authors=OFKM Technologies
- org.opencontainers.image.url=https://github.com/getarcaneapp/arcane
- org.opencontainers.image.documentation=https://github.com/getarcaneapp/arcane/blob/main/README.md
- org.opencontainers.image.source=https://github.com/getarcaneapp/arcane
- org.opencontainers.image.version=next-${{ steps.vars.outputs.sha_short }}
- org.opencontainers.image.revision=${{ github.sha }}
- org.opencontainers.image.licenses=BSD-3-Clause
- org.opencontainers.image.ref.name=arcane
- org.opencontainers.image.title=Arcane
- org.opencontainers.image.description=Modern Docker Management, Made for Everyone
- com.getarcaneapp.arcane=true
-
- - name: Build and push manager image
- id: manager-build
- uses: depot/build-push-action@v1
- with:
- context: .
- file: docker/Dockerfile
- platforms: linux/amd64,linux/arm64,linux/arm/v7
- push: true
- tags: ${{ steps.manager-meta.outputs.tags }}
- labels: ${{ steps.manager-meta.outputs.labels }}
- build-args: |
- VERSION=next-${{ steps.vars.outputs.sha_short }}
- REVISION=${{ github.sha }}
- sbom: true
- provenance: true
-
- - name: Agent image metadata
- id: agent-meta
- uses: docker/metadata-action@v6
- with:
- images: ${{ env.AGENT_IMAGE_NAME }}
- tags: |
- type=raw,value=next
- type=raw,value=next-${{ steps.vars.outputs.sha_short }}
- labels: |
- org.opencontainers.image.authors=OFKM Technologies
- org.opencontainers.image.url=https://github.com/getarcaneapp/arcane
- org.opencontainers.image.documentation=https://github.com/getarcaneapp/arcane/blob/main/README.md
- org.opencontainers.image.source=https://github.com/getarcaneapp/arcane
- org.opencontainers.image.version=next-${{ steps.vars.outputs.sha_short }}
- org.opencontainers.image.revision=${{ github.sha }}
- org.opencontainers.image.licenses=BSD-3-Clause
- org.opencontainers.image.ref.name=arcane-agent
- org.opencontainers.image.title=Arcane Agent
- org.opencontainers.image.description=Arcane Agent
- com.getarcaneapp.arcane.agent=true
-
- - name: Build and push agent image
- id: agent-build
- uses: depot/build-push-action@v1
- with:
- context: .
- file: docker/Dockerfile-agent
- platforms: linux/amd64,linux/arm64,linux/arm/v7
- push: true
- tags: ${{ steps.agent-meta.outputs.tags }}
- labels: ${{ steps.agent-meta.outputs.labels }}
- build-args: |
- VERSION=next-${{ steps.vars.outputs.sha_short }}
- REVISION=${{ github.sha }}
- sbom: true
- provenance: true
diff --git a/.depot/workflows/ci.yml b/.depot/workflows/ci.yml
deleted file mode 100644
index 14d6bff48..000000000
--- a/.depot/workflows/ci.yml
+++ /dev/null
@@ -1,288 +0,0 @@
-name: CI
-
-on:
- push:
- branches: [main]
- pull_request:
- branches: [main, 'release/**']
-
-permissions:
- contents: read
- actions: read
- checks: write
- pull-requests: write
- id-token: write
-
-concurrency:
- group: '${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}'
- cancel-in-progress: true
-
-jobs:
- go-tests:
- name: Go Tests (${{ matrix.module.name }})
- runs-on: depot-ubuntu-latest
- timeout-minutes: 30
- strategy:
- fail-fast: false
- matrix:
- module:
- - name: backend
- path: backend
- timeout: 30
- gcc: true
- cgo_enabled: '1'
- - name: cli
- path: cli
- timeout: 10
- gcc: false
- cgo_enabled: '1'
- steps:
- - name: Checkout
- uses: actions/checkout@v6
-
- - name: Setup Just
- run: curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | sudo bash -s -- --to /usr/local/bin
-
- - name: Set up Depot CLI
- if: matrix.module.gcc
- uses: depot/setup-action@v1
-
- - name: Setup Go
- uses: actions/setup-go@v6
- with:
- go-version-file: ${{ matrix.module.path }}/go.mod
- cache: true
- cache-dependency-path: ${{ matrix.module.path }}/go.sum
-
- - name: Install GCC
- if: matrix.module.gcc
- run: |
- sudo apt-get update
- sudo apt-get install -y gcc
-
- - name: Download modules
- run: just deps install go
-
- - name: Run unit tests
- env:
- CGO_ENABLED: ${{ matrix.module.cgo_enabled }}
- run: just test ${{ matrix.module.name }}
-
- - name: Upload coverage artifact
- if: always()
- uses: actions/upload-artifact@v7
- with:
- name: ${{ matrix.module.name }}-coverage
- path: ${{ matrix.module.path }}/coverage.txt
-
- go-linter:
- name: Go Linter (${{ matrix.module.name }})
- runs-on: depot-ubuntu-latest
- strategy:
- fail-fast: false
- matrix:
- module:
- - name: backend
- args: --build-tags=exclude_frontend --config=../.github/.golangci.yml
- - name: cli
- args: --config=../.github/.golangci.yml
- - name: types
- args: --config=../.github/.golangci.yml
- steps:
- - name: Checkout code
- uses: actions/checkout@v6
-
- - name: Set up Go
- uses: actions/setup-go@v6
- with:
- go-version-file: ${{ matrix.module.name }}/go.mod
- cache-dependency-path: ${{ matrix.module.name }}/go.sum
-
- - name: Run Golangci-lint
- uses: golangci/golangci-lint-action@v9
- with:
- version: latest
- args: ${{ matrix.module.args }}
- working-directory: ${{ matrix.module.name }}
- only-new-issues: false
-
- deadcode:
- name: Go Deadcode Analysis
- if: github.event.pull_request.head.repo.owner.login == 'getarcaneapp'
- runs-on: depot-ubuntu-latest
- steps:
- - name: Checkout code
- uses: actions/checkout@v6
-
- - name: Setup Go
- uses: actions/setup-go@v6
- with:
- go-version-file: backend/go.mod
- cache-dependency-path: backend/go.sum
-
- - name: Install deadcode
- run: go install golang.org/x/tools/cmd/deadcode@latest
-
- - name: Add deadcode problem matcher
- run: echo "::add-matcher::.github/matchers/deadcode-matcher.json"
-
- - name: Run deadcode analysis
- id: deadcode
- working-directory: backend
- continue-on-error: true
- run: |
- OUTPUT=$(deadcode ./... 2>&1 || true)
- echo "$OUTPUT"
- COUNT=$(echo "$OUTPUT" | grep -c "unreachable func" || true)
- if [ -z "$COUNT" ]; then COUNT=0; fi
- echo "count=$COUNT" >> $GITHUB_OUTPUT
- echo "output<<EOF" >> $GITHUB_OUTPUT
- echo "$OUTPUT" >> $GITHUB_OUTPUT
- echo "EOF" >> $GITHUB_OUTPUT
-
- - name: Find Comment
- uses: peter-evans/find-comment@v4
- id: fc
- with:
- issue-number: ${{ github.event.pull_request.number }}
- comment-author: 'github-actions[bot]'
- body-includes: '## πŸ” Deadcode Analysis'
-
- - name: Delete comment if no deadcode found
- if: steps.deadcode.outputs.count == '0' && steps.fc.outputs.comment-id != ''
- uses: actions/github-script@v8
- with:
- script: |
- github.rest.issues.deleteComment({
- owner: context.repo.owner,
- repo: context.repo.repo,
- comment_id: ${{ steps.fc.outputs.comment-id }}
- })
-
- - name: Comment deadcode results
- if: steps.deadcode.outputs.count != '0'
- uses: peter-evans/create-or-update-comment@v5
- with:
- comment-id: ${{ steps.fc.outputs.comment-id }}
- issue-number: ${{ github.event.pull_request.number }}
- body: |
- ## πŸ” Deadcode Analysis
-
- Found **${{ steps.deadcode.outputs.count }}** unreachable functions in the backend.
-
- <details>
- <summary>View details</summary>
-
- ```
- ${{ steps.deadcode.outputs.output }}
- ```
-
- Only remove deadcode that you know is 100% no longer used.
-
- </details>
-
- > Analysis from commit ${{ github.sha }}
- edit-mode: replace
-
- svelte-check:
- name: Svelte Type Check
- runs-on: depot-ubuntu-latest
- steps:
- - name: Checkout code
- uses: actions/checkout@v6
-
- - name: Setup pnpm
- uses: pnpm/action-setup@v4
-
- - name: Setup Node.js
- uses: actions/setup-node@v6
- with:
- node-version: 25
- cache: pnpm
-
- - name: Setup Just
- run: curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | sudo bash -s -- --to /usr/local/bin
-
- - name: Install Fontend Dependencies
- run: just deps install frontend
-
- - name: Add svelte-check problem matcher
- run: echo "::add-matcher::.github/matchers/svelte-check-matcher.json"
-
- - name: Build frontend
- run: just build single frontend
-
- - name: Run svelte-check
- run: just lint frontend
-
- e2e-tests:
- name: E2E Tests (${{ matrix.database.name }})
- if: ${{ github.head_ref != 'l10n_crowdin' }}
- runs-on: depot-ubuntu-latest
- permissions:
- contents: read
- actions: write
- id-token: write
- strategy:
- fail-fast: false
- matrix:
- database:
- - name: sqlite
- compose_file: setup/compose.yaml
- port: 3000
- - name: postgres
- compose_file: setup/compose-postgres.yaml
- port: 3001
- - name: proxy
- compose_file: setup/compose-proxy.yaml
- port: 3002
- steps:
- - name: Checkout code
- uses: actions/checkout@v6
-
- - name: Setup pnpm
- uses: pnpm/action-setup@v4
- with:
- run_install: false
-
- - name: Setup Just
- run: curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | sudo bash -s -- --to /usr/local/bin
-
- - name: Setup Node.js
- uses: actions/setup-node@v6
- with:
- node-version: 25
- cache: pnpm
-
- - name: Cache Playwright Browsers
- uses: actions/cache@v5
- id: playwright-cache
- with:
- path: ~/.cache/ms-playwright
- key: ${{ runner.os }}-playwright-${{ hashFiles('tests/pnpm-lock.yaml', 'tests/package.json') }}
- restore-keys: |
- ${{ runner.os }}-playwright-
-
- - name: Pull and save test images
- run: |
- docker pull ghcr.io/linuxserver/nginx:latest
- docker pull ghcr.io/linuxserver/radarr:nightly
- docker save ghcr.io/linuxserver/nginx:latest ghcr.io/linuxserver/radarr:nightly > /tmp/test-images.tar
-
- - name: Setup and Install Playwright Dependencies
- run: just deps install tests
-
- - name: Run Playwright E2E tests
- run: just test e2e
- env:
- COMPOSE_FILE: ${{ matrix.database.compose_file }}
- BASE_URL: http://localhost:${{ matrix.database.port }}
-
- - name: Upload Playwright HTML report
- if: always()
- uses: actions/upload-artifact@v7
- with:
- name: playwright-report-${{ matrix.database.name }}
- path: tests/.report
- include-hidden-files: true
- retention-days: 15
diff --git a/.depot/workflows/lint-pr-title.yml b/.depot/workflows/lint-pr-title.yml
deleted file mode 100644
index cee12ff51..000000000
--- a/.depot/workflows/lint-pr-title.yml
+++ /dev/null
@@ -1,46 +0,0 @@
-name: "Validate Pull Request Title"
-
-on:
- pull_request_target:
- types:
- - opened
- - edited
-
-permissions:
- pull-requests: write
-
-jobs:
- main:
- name: Validate PR title
- runs-on: depot-ubuntu-latest
- permissions:
- pull-requests: read
- steps:
- - uses: amannn/action-semantic-pull-request@v6
- id: lint_pr_title
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
- - uses: marocchino/sticky-pull-request-comment@v2
- # When the previous steps fails, the workflow would stop. By adding this
- # condition you can continue the execution with the populated error message.
- if: always() && (steps.lint_pr_title.outputs.error_message != null)
- with:
- header: pr-title-lint-error
- message: |
- Hey there and thank you for opening this pull request! πŸ‘‹πŸΌ
-
- We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted.
-
- Details:
-
- ```
- ${{ steps.lint_pr_title.outputs.error_message }}
- ```
-
- # Delete a previous comment when the issue has been resolved
- - if: ${{ steps.lint_pr_title.outputs.error_message == null }}
- uses: marocchino/sticky-pull-request-comment@v2
- with:
- header: pr-title-lint-error
- delete: true
diff --git a/.depot/workflows/merge-conflict.yml b/.depot/workflows/merge-conflict.yml
deleted file mode 100644
index 06c3a9d21..000000000
--- a/.depot/workflows/merge-conflict.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-name: Merge Conflict Labeler
-
-on:
- push:
- branches:
- - main
- pull_request_target:
- branches:
- - main
- types: [synchronize]
-
-jobs:
- label:
- name: Labeling
- runs-on: depot-ubuntu-latest
- if: ${{ github.repository == 'getarcaneapp/arcane' }}
- permissions:
- contents: read
- pull-requests: write
- steps:
- - name: Apply label
- uses: eps1lon/actions-label-merge-conflict@v3
- with:
- dirtyLabel: "merge conflict"
- commentOnDirty: "This pull request has merge conflicts. Please resolve the conflicts so the PR can stay up-to-date and reviewed."
- repoToken: "${{ secrets.GITHUB_TOKEN }}"
diff --git a/.depot/workflows/potential-duplicate-issues.yml b/.depot/workflows/potential-duplicate-issues.yml
deleted file mode 100644
index 015003219..000000000
--- a/.depot/workflows/potential-duplicate-issues.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-name: Potential Duplicate Issues
-on:
- issues:
- types: [opened, edited]
-
-jobs:
- run:
- runs-on: depot-ubuntu-latest
- steps:
- - uses: wow-actions/potential-duplicates@4d4ea0352e0383859279938e255179dd1dbb67b5 #v1.1.0
- with:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- filter: ""
- exclude: "regression"
- label: potential-duplicate
- state: all
- threshold: 0.6
- reactions: "confused"
- comment: |
- We have found issues that are potential duplicates: {{#issues}}
- - #{{ number }} ({{ accuracy }}%)
- {{/issues}}
-
- If any of the issues listed above are a duplicate, please consider closing this issue & upvoting/commenting the original one.
- Doing so will help prioritize bugs and features.
diff --git a/.depot/workflows/pr-quality.yml b/.depot/workflows/pr-quality.yml
deleted file mode 100644
index ed2c22ae5..000000000
--- a/.depot/workflows/pr-quality.yml
+++ /dev/null
@@ -1,107 +0,0 @@
-name: PR Quality
-
-permissions:
- contents: read
- issues: read
- pull-requests: write
-
-on:
- pull_request_target:
- types: [opened, reopened]
-
-jobs:
- pr-quality:
- runs-on: depot-ubuntu-latest
- steps:
- - uses: peakoss/anti-slop@v0
- with:
- # General Settings
- max-failures: 4
-
- # PR Branch Checks
- allowed-target-branches: 'main'
- blocked-target-branches: ''
- allowed-source-branches: ''
- blocked-source-branches: ''
-
- # PR Quality Checks
- max-negative-reactions: 0
- require-maintainer-can-modify: true
-
- # PR Title Checks
- require-conventional-title: true
-
- # PR Description Checks
- require-description: true
- max-description-length: 2500
- max-emoji-count: 0
- max-code-references: 0
- require-linked-issue: false
- blocked-terms: ''
- blocked-issue-numbers: ''
-
- # PR Template Checks
- require-pr-template: true
- strict-pr-template-sections: ''
- optional-pr-template-sections: 'Issues'
- max-additional-pr-template-sections: 3
-
- # Commit Message Checks
- max-commit-message-length: 500
- require-conventional-commits: false
- require-commit-author-match: true
- blocked-commit-authors: ''
-
- # File Checks
- allowed-file-extensions: ''
- allowed-paths: ''
- blocked-paths: |
- SECURITY.md
- LICENSE
- require-final-newline: false
- max-added-comments: 0
-
- # User Checks
- detect-spam-usernames: true
- min-account-age: 30
- max-daily-forks: 7
- min-profile-completeness: 4
-
- # Merge Checks
- min-repo-merged-prs: 0
- min-repo-merge-ratio: 0
- min-global-merge-ratio: 30
- global-merge-ratio-exclude-own: false
-
- # Exemptions
- exempt-draft-prs: false
- exempt-bots: |
- actions-user
- dependabot[bot]
- renovate[bot]
- github-actions[bot]
- getarcaneappbot
- exempt-users: ''
- exempt-author-association: 'OWNER,MEMBER,COLLABORATOR'
- exempt-label: 'quality/exempt'
- exempt-pr-label: ''
- exempt-all-milestones: false
- exempt-all-pr-milestones: false
- exempt-milestones: ''
- exempt-pr-milestones: ''
-
- # PR Success Actions
- success-add-pr-labels: 'quality/verified'
-
- # PR Failure Actions
- failure-remove-pr-labels: ''
- failure-remove-all-pr-labels: true
- failure-add-pr-labels: 'quality/rejected'
- failure-pr-message: |
- This PR did not pass quality checks so it will be closed.
- See the [workflow run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}) for details on which checks failed.
-
- If you believe this is a mistake please let us know.
-
- close-pr: true
- lock-pr: false
diff --git a/.depot/workflows/sync-go-workspace.yml b/.depot/workflows/sync-go-workspace.yml
deleted file mode 100644
index f5887a4c6..000000000
--- a/.depot/workflows/sync-go-workspace.yml
+++ /dev/null
@@ -1,46 +0,0 @@
-name: Dependabot Go Workspaces Tidy
-on:
- pull_request:
- branches:
- - main
- - 'release/**'
- types: [opened, synchronize, reopened]
- paths:
- - backend/go.mod
- - backend/go.sum
- - types/go.mod
- - types/go.sum
- - cli/go.mod
- - cli/go.sum
- - go.work
- - go.work.sum
-
-jobs:
- tidy:
- runs-on: depot-ubuntu-latest
- if: ${{ github.actor == 'dependabot[bot]' }}
- steps:
- - name: Checkout repository
- uses: actions/checkout@v6
- with:
- token: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Set up Go
- uses: actions/setup-go@v6
- with:
- go-version-file: backend/go.mod
- cache-dependency-path: |
- backend/go.sum
- cli/go.sum
- types/go.sum
- go.work.sum
-
- - name: Run go work sync and go mod tidy
- run: |
- go work sync
-
- - name: Commit changes (if any)
- uses: stefanzweifel/git-auto-commit-action@v7
- with:
- commit_message: 'chore(deps): Synchronize go.mod files via go work sync'
- branch: ${{ github.head_ref }}