Compare commits

...
24 Commits
Author SHA1 Message Date
mytheclipsebotreview[bot] abd82a47fd Auto-merge PR #42
Deploy Hub / build-and-deploy (push) Canceled after 0s
chore(deps-dev): bump @biomejs/biome from 2.5.13 to 2.5.14 in the development group
2026-09-21 02:31:33 +00:00
dependabot[bot] 325baa2c4d chore(deps-dev): bump @biomejs/biome in the development group
Bumps the development group with 1 update: [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome).


Updates `@biomejs/biome` from 2.5.13 to 2.5.14
- [Release notes](https://github.com/biomejs/biome/releases)
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md)
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.5.14/packages/@biomejs/biome)

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-version: 2.5.14
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-21 02:25:41 +00:00
mytheclipsebotreview[bot] 77f8ef9f98 Auto-merge PR #41
Deploy Hub / build-and-deploy (push) Canceled after 0s
chore(deps): bump next from 16.3.4 to 16.3.5 in the production group
2026-09-15 02:34:40 +00:00
mytheclipsebotreview 7c15efd2db fix: auto-fix code quality [skip ci] 2026-09-15 09:34:31 +07:00
dependabot[bot] 7ac20981c7 chore(deps): bump next from 16.3.4 to 16.3.5 in the production group
Bumps the production group with 1 update: [next](https://github.com/vercel/next.js).


Updates `next` from 16.3.4 to 16.3.5
- [Release notes](https://github.com/vercel/next.js/releases)
- [Commits](https://github.com/vercel/next.js/compare/v16.3.4...v16.3.5)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 16.3.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-15 02:25:31 +00:00
mytheclipsebotreview[bot] 2a4b260fe3 Auto-merge PR #40
Deploy Hub / build-and-deploy (push) Canceled after 0s
chore(deps-dev): bump @biomejs/biome from 2.5.12 to 2.5.13 in the development group
2026-09-14 02:42:50 +00:00
mytheclipsebotreview b00ade6c21 fix: auto-fix code quality [skip ci] 2026-09-14 09:42:25 +07:00
mytheclipsebotreview 9dbb85e0fa Merge branch 'main' of https://github.com/asepharyana/hub into dependabot/npm_and_yarn/development-7a0c24a58d 2026-09-14 09:40:38 +07:00
mytheclipsebotreview[bot] 078a36ebcf Auto-merge PR #39
Deploy Hub / build-and-deploy (push) Canceled after 0s
chore(deps): bump the production group with 2 updates
2026-09-14 02:34:16 +00:00
dependabot[bot] 83b92825ee chore(deps-dev): bump @biomejs/biome in the development group
Bumps the development group with 1 update: [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome).


Updates `@biomejs/biome` from 2.5.12 to 2.5.13
- [Release notes](https://github.com/biomejs/biome/releases)
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md)
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.5.13/packages/@biomejs/biome)

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-version: 2.5.13
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-14 02:28:37 +00:00
dependabot[bot] 9d554159ea chore(deps): bump the production group with 2 updates
Bumps the production group with 2 updates: [react](https://github.com/react/react/tree/HEAD/packages/react) and [react-dom](https://github.com/react/react/tree/HEAD/packages/react-dom).


Updates `react` from 19.2.8 to 19.3.0
- [Release notes](https://github.com/react/react/releases)
- [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/react/react/commits/v19.3.0/packages/react)

Updates `react-dom` from 19.2.8 to 19.3.0
- [Release notes](https://github.com/react/react/releases)
- [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/react/react/commits/v19.3.0/packages/react-dom)

---
updated-dependencies:
- dependency-name: react
  dependency-version: 19.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production
- dependency-name: react-dom
  dependency-version: 19.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-14 02:28:21 +00:00
mytheclipsebotreview[bot] fe76bcb049 Auto-merge PR #38
Deploy Hub / build-and-deploy (push) Canceled after 0s
chore(deps-dev): bump @biomejs/biome from 2.5.11 to 2.5.12 in the development group
2026-09-08 08:27:42 +00:00
mytheclipsebotreview 85c38d72b0 fix: auto-fix code quality [skip ci] 2026-09-08 15:27:25 +07:00
dependabot[bot] 83d85dcaf7 chore(deps-dev): bump @biomejs/biome in the development group
Bumps the development group with 1 update: [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome).


Updates `@biomejs/biome` from 2.5.11 to 2.5.12
- [Release notes](https://github.com/biomejs/biome/releases)
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md)
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.5.12/packages/@biomejs/biome)

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-version: 2.5.12
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-07 02:26:39 +00:00
mytheclipsebotreview[bot] 93690d674f Auto-merge PR #37
Deploy Hub / build-and-deploy (push) Canceled after 0s
chore(deps): bump next from 16.3.3 to 16.3.4 in the production group
2026-09-04 02:27:37 +00:00
dependabot[bot] afa6af24cf chore(deps): bump next from 16.3.3 to 16.3.4 in the production group
Bumps the production group with 1 update: [next](https://github.com/vercel/next.js).


Updates `next` from 16.3.3 to 16.3.4
- [Release notes](https://github.com/vercel/next.js/releases)
- [Commits](https://github.com/vercel/next.js/compare/v16.3.3...v16.3.4)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 16.3.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-04 02:25:31 +00:00
mytheclipsebotreview[bot] 2d49306606 Auto-merge PR #36
Deploy Hub / build-and-deploy (push) Canceled after 0s
chore(deps-dev): bump @biomejs/biome from 2.5.10 to 2.5.11 in the development group
2026-08-31 02:35:08 +00:00
mytheclipsebotreview 619020fd9d Merge branch 'main' of https://github.com/asepharyana/hub into dependabot/npm_and_yarn/development-2d7d4d84ec 2026-08-31 09:34:30 +07:00
mytheclipsebotreview[bot] 610805f1e8 Auto-merge PR #35
chore(deps): bump next from 16.3.2 to 16.3.3 in the production group
2026-08-31 02:34:01 +00:00
dependabot[bot] bcdc7ed0f7 chore(deps-dev): bump @biomejs/biome in the development group
Bumps the development group with 1 update: [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome).


Updates `@biomejs/biome` from 2.5.10 to 2.5.11
- [Release notes](https://github.com/biomejs/biome/releases)
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md)
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.5.11/packages/@biomejs/biome)

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-version: 2.5.11
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-31 02:27:23 +00:00
dependabot[bot] f483783795 chore(deps): bump next from 16.3.2 to 16.3.3 in the production group
Bumps the production group with 1 update: [next](https://github.com/vercel/next.js).


Updates `next` from 16.3.2 to 16.3.3
- [Release notes](https://github.com/vercel/next.js/releases)
- [Commits](https://github.com/vercel/next.js/compare/v16.3.2...v16.3.3)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 16.3.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-31 02:27:09 +00:00
asepharyana d92e8d2e58 chore: upgrade runtime to Bun 1.4.0
Deploy Hub / build-and-deploy (push) Canceled after 0s
- Update Nix flake.nix overlay to use Bun 1.4.0 (overrideAttrs)
- Update CI (setup-bun) to pin bun-version: 1.4.0
- Update package.json packageManager/Dockerfile/vercel.json
- sha256: sha256:Poy0vf7yJ/hzk33QiQj5gnshI5Q7dfbaMD7xgwiyDKw=
2026-08-29 11:05:14 +07:00
asepharyana 303ad5468f ci: deploy via Attic binary cache (attic.asepharyana.my.id) instead of ssh copy
Deploy Hub / build-and-deploy (push) Canceled after 0s
Push build result to attic cache directly from runner, then VPS
substitutes it via nix-store --realise. ssh copy retained only as fallback.
2026-08-27 20:38:34 +07:00
asepharyana d8c7c870a6 ci: add standalone Nix build + deploy workflow; remove parent notify
Deploy Hub / build-and-deploy (push) Canceled after 0s
Repo is now self-contained: flake.nix (Next.js build) + deploy.yml
(nix build -> nix copy -> nix-env profile -> systemctl restart hub).
No longer dispatches submodule-updated to asepharyana-hub.
2026-08-27 19:46:13 +07:00
4 changed files with 227 additions and 32 deletions

No files matched your search

+132
View File
@@ -0,0 +1,132 @@
name: Deploy Hub
on:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: hub-deploy
cancel-in-progress: false
permissions:
contents: read
id-token: write
env:
VPS_HOST: ${{ secrets.VPS_HOST }}
VPS_USER: ${{ secrets.VPS_USER }}
jobs:
build-and-deploy:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v22
with:
determinate: false
extra-conf: |
sandbox = false
accept-flake-config = true
# Attic binary cache as substituter on the runner: lets CI pull the
# prebuilt attic client (and cached deps/builds) over HTTPS, no SSH.
# extra-substituters (NOT extra-trusted-substituters) is required —
# Determinate Nix never merges trusted-* for nix-store CLI clients.
extra-substituters = https://attic.asepharyana.my.id/asepharyana https://attic.asepharyana.my.id/gmw
extra-trusted-public-keys = asepharyana:zBpY6vNI1nDJ4mU6W4q880BB0JB1qb3gRKkO/tGSMiQ= gmw:Fq2Anzuhkb+T/hftWnPcveHSi21/RzIgIOeG8pCJa88=
- name: Cache Nix
uses: DeterminateSystems/magic-nix-cache-action@v14
with:
use-flakehub: false
- name: Build hub
id: build
run: |
nix build .#hub --impure --option sandbox false --print-build-logs
STORE_PATH=$(readlink result)
echo "store-path=$STORE_PATH" >> "$GITHUB_OUTPUT"
echo "Build OK hub: $STORE_PATH"
- name: Push to Attic cache
env:
ATTIC_TOKEN: ${{ secrets.ATTIC_TOKEN }}
run: |
if [ -z "$ATTIC_TOKEN" ]; then
echo "ATTIC_TOKEN not set; skipping attic push"
exit 0
fi
STORE_PATH="${{ steps.build.outputs.store-path }}"
ATTIC_DIR="/nix/store/fygyy3yk4rqdknxkiwkqambpnhyax0k4-attic-0.1.0"
# ── Get an attic client on the runner ────────────────────────────
ATTIC_BIN=""
if command -v attic >/dev/null 2>&1; then
ATTIC_BIN="$(command -v attic)"
elif nix-store --realise "$ATTIC_DIR" 2>/tmp/attic-bootstrap.err; then
echo "✅ Pulled attic client from attic cache (HTTPS substituter)"
ATTIC_BIN="$ATTIC_DIR/bin/attic"
else
echo "attic client unavailable on runner; skipping attic push (VPS will substitute or fall back)"
tail -5 /tmp/attic-bootstrap.err 2>/dev/null || true
exit 0
fi
mkdir -p "$HOME/.config/attic"
cat > "$HOME/.config/attic/config.toml" <<EOF
default-server = "pub"
[servers.pub]
endpoint = "https://attic.asepharyana.my.id"
token = "$ATTIC_TOKEN"
EOF
# Retry the direct push — attic push is idempotent.
push_ok=""
for attempt in 1 2 3; do
if "$ATTIC_BIN" push pub:asepharyana "$STORE_PATH" --jobs 4 --ignore-upstream-cache-filter; then
echo "✅ Pushed $STORE_PATH to attic directly from runner"
push_ok=1
break
fi
echo "⚠️ Direct attic push attempt $attempt/3 failed; retrying in 10s..."
sleep 10
done
if [ -z "$push_ok" ]; then
echo "Direct attic push failed after 3 attempts; deploy will fall back to ssh copy"
fi
- name: Setup SSH key
env:
SSH_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: |
mkdir -p ~/.ssh
echo "$SSH_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
sed -i 's/\r$//' ~/.ssh/id_ed25519
ssh-keygen -y -f ~/.ssh/id_ed25519 >/dev/null 2>&1 || { echo "SSH key invalid"; exit 1; }
ssh-keyscan -H "$VPS_HOST" >> ~/.ssh/known_hosts 2>/dev/null
- name: Deploy hub to VPS
run: |
STORE_PATH="${{ steps.build.outputs.store-path }}"
echo "=== Realising hub: $STORE_PATH (substitute from attic, fallback ssh copy) ==="
if ssh "$VPS_USER@$VPS_HOST" "sudo /nix/var/nix/profiles/default/bin/nix-store --realise '$STORE_PATH'" 2>/dev/null; then
echo "Substituted hub from Attic cache"
else
echo "Attic substitute failed; falling back to ssh copy"
nix copy --to "ssh://${{ secrets.VPS_USER }}@${{ secrets.VPS_HOST }}" "$STORE_PATH"
fi
echo "=== Updating profile ==="
ssh "$VPS_USER@$VPS_HOST" "sudo /nix/var/nix/profiles/default/bin/nix-env --profile /nix/var/nix/profiles/hub --set '$STORE_PATH'"
echo "=== Restarting service ==="
ssh "$VPS_USER@$VPS_HOST" "sudo systemctl restart hub && for i in \$(seq 1 15); do state=\$(systemctl is-active hub 2>/dev/null || echo inactive); [ \"\$state\" = \"active\" ] && break; sleep 2; done; echo \"final-state=\$state\"; [ \"\$state\" = \"active\" ]"
echo "✅ hub deployed"
-25
View File
@@ -1,25 +0,0 @@
name: Notify Parent Repo
on:
push:
branches:
- main
workflow_dispatch:
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Trigger root monorepo build
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.DISPATCH_TOKEN }}
repository: asepharyana/asepharyana-hub
event-type: submodule-updated
client-payload: |
{
"service": "hub",
"ref": "${{ github.ref }}",
"sha": "${{ github.sha }}",
"actor": "${{ github.actor }}"
}
+81
View File
@@ -0,0 +1,81 @@
{
description = "Asepharyana Hub — personal portfolio SPA (Next.js)";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [
(self: super: {
bun = super.bun.overrideAttrs (old: rec {
version = "1.4.0";
src = super.fetchzip {
url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-linux-x64.zip";
sha256 = "sha256:Poy0vf7yJ/hzk33QiQj5gnshI5Q7dfbaMD7xgwiyDKw=";
};
});
})
];
};
hub = pkgs.stdenv.mkDerivation {
name = "hub-0.1.0";
src = ./.;
nativeBuildInputs = with pkgs; [ bun nodejs-slim_22 ];
buildInputs = with pkgs; [ nodejs openssl stdenv.cc.cc.lib libffi ];
LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
LD_LIBRARY_PATH = "${pkgs.libclang.lib}/lib:${pkgs.stdenv.cc.cc.lib}/lib:${pkgs.libffi}/lib";
NIX_ENFORCE_PURITY = "0";
SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
NODE_EXTRA_CA_CERTS = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
NODE_ENV = "production";
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
buildPhase = ''
export HOME="$TMPDIR"
echo "=== Installing dependencies ==="
bun install 2>&1
echo "=== Building Next.js ==="
bun run build 2>&1
'';
installPhase = ''
mkdir -p $out/share/hub $out/bin
cp -r .next $out/share/hub/
cp -r public $out/share/hub/ 2>/dev/null || true
cp package.json $out/share/hub/
cp next.config.{ts,mjs,js} $out/share/hub/ 2>/dev/null || true
cp -r node_modules $out/share/hub/
cat > $out/bin/hub << WRAPPER
#!${pkgs.runtimeShell}
exec ${pkgs.bun}/bin/bun run --cwd $out/share/hub start
WRAPPER
chmod +x $out/bin/hub
'';
};
in
{
packages = {
inherit hub;
default = hub;
};
apps.hub = {
type = "app";
program = "${hub}/bin/hub";
};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [ nodejs-slim_22 bun ];
};
});
}
+14 -7
View File
@@ -1,13 +1,20 @@
{ {
"$schema": "https://json.schemastore.org/package.json",
"name": "hub", "name": "hub",
"version": "0.1.0", "version": "0.1.0",
"description": "Asepharyana Hub — personal portfolio SPA (Next.js)",
"private": true, "private": true,
"packageManager": "bun@1.4.0",
"engines": {
"bun": ">=1.4.0",
"node": ">=22"
},
"scripts": { "scripts": {
"dev": "next dev",
"build": "next build", "build": "next build",
"start": "next start", "dev": "next dev",
"format": "biome format --write",
"lint": "biome check", "lint": "biome check",
"format": "biome format --write" "start": "next start"
}, },
"dependencies": { "dependencies": {
"@base-ui/react": "^1.7.0", "@base-ui/react": "^1.7.0",
@@ -20,11 +27,11 @@
"framer-motion": "^13.1.1", "framer-motion": "^13.1.1",
"input-otp": "^1.5.0", "input-otp": "^1.5.0",
"lucide-react": "^1.33.0", "lucide-react": "^1.33.0",
"next": "16.3.2", "next": "16.3.5",
"next-themes": "^0.4.6", "next-themes": "^0.4.6",
"react": "19.2.8", "react": "19.3.0",
"react-day-picker": "^10.0.1", "react-day-picker": "^10.0.1",
"react-dom": "19.2.8", "react-dom": "19.3.0",
"react-resizable-panels": "^4.12.3", "react-resizable-panels": "^4.12.3",
"recharts": "3.10.1", "recharts": "3.10.1",
"shadcn": "^4.19.0", "shadcn": "^4.19.0",
@@ -33,7 +40,7 @@
"tw-animate-css": "^1.4.0" "tw-animate-css": "^1.4.0"
}, },
"devDependencies": { "devDependencies": {
"@biomejs/biome": "2.5.10", "@biomejs/biome": "2.5.14",
"@tailwindcss/postcss": "^4", "@tailwindcss/postcss": "^4",
"@types/node": "^26", "@types/node": "^26",
"@types/react": "^19", "@types/react": "^19",