Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,22 @@ jobs:
timeout-minutes: 2

steps:
# Short-lived token that can only run workflows in diybits/infra,
# from the dispatch GitHub App.
- name: Get dispatch token for ${{ env.DEPLOY_REPO_OWNER }}/${{ env.DEPLOY_REPO }}
id: app_token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
client-id: ${{ vars.DEPLOY_DISPATCH_CLIENT_ID }}
private-key: ${{ secrets.DEPLOY_DISPATCH_APP_KEY }}
owner: ${{ env.DEPLOY_REPO_OWNER }}
repositories: ${{ env.DEPLOY_REPO }}
permission-actions: write

- name: Trigger Ansible ${{ github.event.inputs.environment }} Deployment for ${{ github.event.inputs.release_version }}
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
github-token: ${{ secrets.GH_PAT_SEEKARR_DEPLOY }}
github-token: ${{ steps.app_token.outputs.token }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: '${{ env.DEPLOY_REPO_OWNER }}',
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,6 @@ Single-user login backed by `/config/user/credentials.json`. Passwords hashed wi
- **Lint**: `ruff check src/` using `ruff.toml` (rules: E722, F401, F541, F841, W292).
- **Test**: `pytest tests/` with `pytest-cov`; enforces ≥50% coverage gate.
- `publish.yml` — pushes the image to GHCR on merge to `main` (`latest`, sha) and on `v*` tags (semver); a tag also creates the GitHub Release.
- `deploy.yml` — manual `workflow_dispatch`; dispatches the Ansible deploy of a published version (`GH_PAT_SEEKARR_DEPLOY`).
- `deploy.yml` — manual `workflow_dispatch`; dispatches the Ansible deploy of a published version (token from the `diybits-deploy-dispatch` GitHub App).
- `security.yml` — dependency/SAST scanning (Trivy + CodeQL).
- `seekarr-docs.yml` — deploys `docs/` to GitHub Pages.
Loading