Repository navigation
Add AutoPlexx Command Center dashboard (phase 1: scaffold, launcher, health) #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| name: Dashboard CI | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - 'dashboard/**' | ||
| - '.github/workflows/dashboard-ci.yml' | ||
| push: | ||
| branches: [main] | ||
| paths: | ||
| - 'dashboard/**' | ||
| - '.github/workflows/dashboard-ci.yml' | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| check: | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: dashboard | ||
|
|
||
| steps: | ||
| # persist-credentials: false — `npm ci` runs dependency lifecycle scripts, | ||
| # and leaving the checkout token in .git/config exposes it to them. | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 | ||
| cache: npm | ||
| cache-dependency-path: dashboard/package-lock.json | ||
|
|
||
| - run: npm ci | ||
|
|
||
| - name: Typecheck | ||
| run: npm run typecheck | ||
|
|
||
| - name: Lint | ||
| run: npm run lint | ||
|
|
||
| - name: Test | ||
| run: npm test | ||
|
|
||
| - name: Build | ||
| run: npm run build | ||
|
|
||
| # Catches Dockerfile regressions on PRs, where the release workflow | ||
| # (which only runs on main) wouldn't. | ||
| - name: Build image | ||
| run: docker build -t autoplexx-dashboard:ci . | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| name: Publish dashboard image | ||
|
|
||
| # Publishes ghcr.io/joshdev8/autoplexx-dashboard so users who clone this repo | ||
| # pull a prebuilt image instead of running a Node build on their own machine. | ||
| # | ||
| # One-time maintainer step after the first successful run: make the package | ||
| # public (GitHub -> Packages -> autoplexx-dashboard -> Package settings -> | ||
| # Change visibility). Until then anonymous `docker compose pull` will fail and | ||
| # users fall back to the `build:` stanza in docker-compose.yml. | ||
|
|
||
| # No `paths` filter here on purpose: a `paths` filter applies to tag pushes too, | ||
| # so tagging a release whose commit didn't happen to touch dashboard/ would | ||
| # silently skip publishing. Unrelated pushes to main just hit the build cache | ||
| # below and finish quickly, which is the cheaper mistake to make. | ||
| on: | ||
| push: | ||
| branches: [main] | ||
| tags: | ||
| - 'v*' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: write | ||
|
|
||
| concurrency: | ||
| group: dashboard-release-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| IMAGE: ghcr.io/${{ github.repository_owner }}/autoplexx-dashboard | ||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| # The build runs dependency lifecycle scripts; don't leave the checkout | ||
| # token in .git/config where they can read it. | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - uses: docker/setup-qemu-action@v3 | ||
|
|
||
| - uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - uses: docker/login-action@v3 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - id: meta | ||
| uses: docker/metadata-action@v5 | ||
| with: | ||
| images: ${{ env.IMAGE }} | ||
| tags: | | ||
| type=raw,value=latest,enable={{is_default_branch}} | ||
| type=ref,event=tag | ||
| type=sha,format=short | ||
|
|
||
| # arm64 is built alongside amd64 because this stack already accommodates | ||
| # arm64 hosts — see the CHECKRR_IMAGE_TAG note in docker-compose.yml. | ||
| - uses: docker/build-push-action@v6 | ||
| with: | ||
| context: dashboard | ||
| platforms: linux/amd64,linux/arm64 | ||
| push: true | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| labels: ${{ steps.meta.outputs.labels }} | ||
| cache-from: type=gha | ||
| cache-to: type=gha,mode=max |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,3 +13,7 @@ Thumbs.db | |
|
|
||
| # Logs | ||
| *.log | ||
|
|
||
| # Dashboard build artifacts | ||
| node_modules/ | ||
| dashboard/*/dist/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| node_modules | ||
| **/node_modules | ||
| **/dist | ||
| .git | ||
| *.log |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.