Compare commits

..

3 Commits
3.0.0 ... 3.1.0

Author SHA1 Message Date
113f42ca21 feat: setup node
All checks were successful
test-build / guarddog (push) Successful in 25s
renovate / renovate (push) Successful in 59s
test-build / build (push) Successful in 1m31s
release-image-gitea / build (push) Successful in 1m33s
release-image-harbor / build (push) Successful in 1m48s
release-image-gitea / release (push) Successful in 3m53s
release-image-harbor / release (push) Successful in 4m40s
2026-03-11 01:09:20 -05:00
1f2820e4b4 feat: convert to bun
Some checks failed
test-build / guarddog (push) Successful in 19s
renovate / renovate (push) Successful in 53s
test-build / build (push) Failing after 1m20s
2026-03-11 01:03:51 -05:00
dc088306ce feat: update workflow to major version
All checks were successful
test-build / guarddog (push) Successful in 13s
renovate / renovate (push) Successful in 40s
test-build / build (push) Successful in 1m57s
2026-03-11 00:15:25 -05:00
11 changed files with 3033 additions and 12949 deletions

View File

@@ -3,7 +3,7 @@ name: release-image-gitea
on: on:
push: push:
tags: tags:
- 2.* - 3.*
workflow_dispatch: workflow_dispatch:
@@ -14,19 +14,18 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v6 uses: actions/checkout@v6
- name: Set up pnpm - name: Set up Bun
uses: pnpm/action-setup@v4 uses: oven-sh/setup-bun@v2
with: with:
version: 10.x bun-version: 1.3.10
- name: Set up Node.js - name: Set up Node
uses: actions/setup-node@v6 uses: actions/setup-node@v6
with: with:
node-version: 24.14.0 node-version: 24.14.0
cache: pnpm
- name: Install Dependencies - name: Install Dependencies
run: pnpm install --frozen-lockfile run: bun install --frozen-lockfile
- name: Cache Astro Build Cache - name: Cache Astro Build Cache
uses: actions/cache@v5 uses: actions/cache@v5
@@ -34,16 +33,16 @@ jobs:
path: | path: |
node_modules/.cache node_modules/.cache
.astro/cache .astro/cache
key: ${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.sha }} key: ${{ runner.os }}-astro-cache-${{ hashFiles('**/bun.lockb') }}-${{ github.sha }}
restore-keys: | restore-keys: |
${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}- ${{ runner.os }}-astro-cache-${{ hashFiles('**/bun.lockb') }}-
${{ runner.os }}-astro-cache- ${{ runner.os }}-astro-cache-
- name: Lint Code - name: Lint Code
run: pnpm lint run: bun run lint
- name: Build Project - name: Build Project
run: pnpm build run: bun run build
release: release:
runs-on: ubuntu-js runs-on: ubuntu-js

View File

@@ -3,7 +3,7 @@ name: release-image-harbor
on: on:
push: push:
tags: tags:
- 2.* - 3.*
workflow_dispatch: workflow_dispatch:
@@ -14,19 +14,18 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v6 uses: actions/checkout@v6
- name: Set up pnpm - name: Set up Bun
uses: pnpm/action-setup@v4 uses: oven-sh/setup-bun@v2
with: with:
version: 10.x bun-version: 1.3.10
- name: Set up Node.js - name: Set up Node
uses: actions/setup-node@v6 uses: actions/setup-node@v6
with: with:
node-version: 24.14.0 node-version: 24.14.0
cache: pnpm
- name: Install Dependencies - name: Install Dependencies
run: pnpm install --frozen-lockfile run: bun install --frozen-lockfile
- name: Cache Astro Build Cache - name: Cache Astro Build Cache
uses: actions/cache@v5 uses: actions/cache@v5
@@ -34,16 +33,16 @@ jobs:
path: | path: |
node_modules/.cache node_modules/.cache
.astro/cache .astro/cache
key: ${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.sha }} key: ${{ runner.os }}-astro-cache-${{ hashFiles('**/bun.lockb') }}-${{ github.sha }}
restore-keys: | restore-keys: |
${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}- ${{ runner.os }}-astro-cache-${{ hashFiles('**/bun.lockb') }}-
${{ runner.os }}-astro-cache- ${{ runner.os }}-astro-cache-
- name: Lint Code - name: Lint Code
run: pnpm lint run: bun run lint
- name: Build Project - name: Build Project
run: pnpm build run: bun run build
release: release:
runs-on: ubuntu-js runs-on: ubuntu-js

View File

@@ -16,19 +16,18 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v6 uses: actions/checkout@v6
- name: Set up pnpm - name: Set up Bun
uses: pnpm/action-setup@v4 uses: oven-sh/setup-bun@v2
with: with:
version: 10.x bun-version: 1.3.10
- name: Set up Node.js - name: Set up Node
uses: actions/setup-node@v6 uses: actions/setup-node@v6
with: with:
node-version: 24.14.0 node-version: 24.14.0
cache: pnpm
- name: Install Dependencies - name: Install Dependencies
run: pnpm install --frozen-lockfile run: bun install --frozen-lockfile
- name: Cache Astro Build Cache - name: Cache Astro Build Cache
uses: actions/cache@v5 uses: actions/cache@v5
@@ -36,16 +35,16 @@ jobs:
path: | path: |
node_modules/.cache node_modules/.cache
.astro/cache .astro/cache
key: ${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.sha }} key: ${{ runner.os }}-astro-cache-${{ hashFiles('**/bun.lockb') }}-${{ github.sha }}
restore-keys: | restore-keys: |
${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}- ${{ runner.os }}-astro-cache-${{ hashFiles('**/bun.lockb') }}-
${{ runner.os }}-astro-cache- ${{ runner.os }}-astro-cache-
- name: Lint Code - name: Lint Code
run: pnpm lint run: bun run lint
- name: Build Project - name: Build Project
run: pnpm build run: bun run build
- name: ntfy Failed - name: ntfy Failed
uses: niniyas/ntfy-action@master uses: niniyas/ntfy-action@master

2
.gitignore vendored
View File

@@ -10,8 +10,6 @@ node_modules/
npm-debug.log* npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
pnpm-debug.log*
# environment variables # environment variables
.env .env

3
.npmrc
View File

@@ -1,3 +0,0 @@
registry=https://registry.npmjs.org/
engine-strict=true
save-exact=true

View File

@@ -1,32 +1,30 @@
FROM docker.io/node:24.14.0-alpine AS builder FROM dhi.io/bun:1.3.10-debian13-dev AS builder
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
WORKDIR /app WORKDIR /app
COPY package.json pnpm-lock.yaml ./
COPY package.json bun.lock ./
FROM builder AS prod-deps FROM builder AS prod-deps
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile RUN --mount=type=cache,id=bun,target=/root/.bun/install/cache \
bun install --production --frozen-lockfile
FROM prod-deps AS build-deps FROM builder AS build-deps
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile RUN --mount=type=cache,id=bun,target=/root/.bun/install/cache \
bun install --frozen-lockfile
FROM build-deps AS build FROM build-deps AS build
COPY . . COPY . .
RUN pnpm run build RUN bun run build
FROM dhi.io/node:24.14.0 AS runtime FROM dhi.io/bun:1.3.10-alpine3.22 AS runtime
WORKDIR /app WORKDIR /app
COPY --from=prod-deps /app/node_modules /app/node_modules COPY --from=prod-deps /app/node_modules /app/node_modules
COPY --from=build /app/dist /app/dist COPY --from=build /app/dist /app/dist
LABEL version="3.0.0" LABEL version="3.1.0"
LABEL description="Astro based personal website" LABEL description="Astro based personal website"
ENV HOST=0.0.0.0 ENV HOST=0.0.0.0
ENV PORT=4321 ENV PORT=4321
EXPOSE $PORT EXPOSE $PORT
CMD ["node", "./dist/server/entry.mjs"] CMD ["bun", "run", "./dist/server/entry.mjs"]

View File

@@ -7,9 +7,8 @@ Personal site used for information about myself and blog.
With dependencies installed, you can utilize the following npm scripts to manage your project's development lifecycle: With dependencies installed, you can utilize the following npm scripts to manage your project's development lifecycle:
- `pnpm build`: Bundles your site into static files for production. - `bun run build`: Bundles your site into static files for production.
- `pnpm dev`: Starts a local development server with hot reloading enabled. - `bun run dev`: Starts a local development server with hot reloading enabled.
- `pnpm preview`: Serves your build output locally for preview before deployment.
For detailed help with Astro CLI commands, visit [Astro's documentation](https://docs.astro.build/en/reference/cli-reference/). For detailed help with Astro CLI commands, visit [Astro's documentation](https://docs.astro.build/en/reference/cli-reference/).

2942
bun.lock Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -27,57 +27,57 @@
"lint:fix": "eslint --fix \"src/**/*.{js,ts,jsx,tsx,astro}\"" "lint:fix": "eslint --fix \"src/**/*.{js,ts,jsx,tsx,astro}\""
}, },
"dependencies": { "dependencies": {
"@astrojs/check": "^0.9.7", "@astrojs/check": "0.9.7",
"@astrojs/node": "^10.0.0", "@astrojs/node": "10.0.0",
"@astrojs/partytown": "^2.1.5", "@astrojs/partytown": "2.1.5",
"@astrojs/react": "^5.0.0", "@astrojs/react": "5.0.0",
"@astrojs/rss": "^4.0.17", "@astrojs/rss": "4.0.17",
"@astrojs/sitemap": "^3.7.1", "@astrojs/sitemap": "3.7.1",
"@directus/sdk": "^21.2.0", "@directus/sdk": "21.2.0",
"@giscus/react": "^3.1.0", "@giscus/react": "3.1.0",
"@iconify-json/mdi": "^1.2.3", "@iconify-json/mdi": "1.2.3",
"@iconify-json/pajamas": "^1.2.15", "@iconify-json/pajamas": "1.2.15",
"@iconify-json/simple-icons": "^1.2.73", "@iconify-json/simple-icons": "1.2.73",
"@playform/compress": "^0.2.1", "@playform/compress": "0.2.1",
"@swup/astro": "^1.8.0", "@swup/astro": "1.8.0",
"@tailwindcss/postcss": "^4.2.1", "@tailwindcss/postcss": "4.2.1",
"@tailwindcss/vite": "^4.2.1", "@tailwindcss/vite": "4.2.1",
"@types/react": "^19.2.14", "@types/react": "19.2.14",
"@types/unist": "^3.0.3", "@types/unist": "3.0.3",
"astro": "^6.0.2", "astro": "6.0.2",
"astro-icon": "^1.1.5", "astro-icon": "1.1.5",
"markdown-it": "14.1.1", "markdown-it": "14.1.1",
"marked": "^17.0.4", "marked": "17.0.4",
"marked-shiki": "^1.2.1", "marked-shiki": "1.2.1",
"mdast-util-to-string": "^4.0.0", "mdast-util-to-string": "4.0.0",
"photoswipe": "^5.4.4", "photoswipe": "5.4.4",
"preline": "^4.1.2", "preline": "4.1.2",
"react": "^19.2.4", "react": "19.2.4",
"react-dom": "^19.2.4", "react-dom": "19.2.4",
"reading-time": "^1.5.0", "reading-time": "1.5.0",
"sharp": "^0.34.5", "sharp": "0.34.5",
"sharp-ico": "^0.1.5", "sharp-ico": "0.1.5",
"shiki": "^4.0.2", "shiki": "4.0.2",
"tailwindcss": "^4.2.1", "tailwindcss": "4.2.1",
"ultrahtml": "^1.6.0" "ultrahtml": "1.6.0"
}, },
"devDependencies": { "devDependencies": {
"@eslint-react/eslint-plugin": "^2.13.0", "@eslint-react/eslint-plugin": "2.13.0",
"@tailwindcss/forms": "^0.5.11", "@tailwindcss/forms": "0.5.11",
"@tailwindcss/typography": "^0.5.19", "@tailwindcss/typography": "0.5.19",
"@types/markdown-it": "14.1.2", "@types/markdown-it": "14.1.2",
"eslint": "^10.0.3", "eslint": "10.0.3",
"eslint-config-prettier": "^10.1.8", "eslint-config-prettier": "10.1.8",
"eslint-plugin-astro": "^1.6.0", "eslint-plugin-astro": "1.6.0",
"eslint-plugin-format": "^2.0.1", "eslint-plugin-format": "2.0.1",
"eslint-plugin-react": "^7.37.5", "eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-hooks": "7.0.1",
"eslint-plugin-react-refresh": "^0.5.2", "eslint-plugin-react-refresh": "0.5.2",
"prettier": "^3.8.1", "prettier": "3.8.1",
"prettier-plugin-astro": "^0.14.1", "prettier-plugin-astro": "0.14.1",
"prettier-plugin-tailwindcss": "^0.7.2", "prettier-plugin-tailwindcss": "0.7.2",
"timeago.js": "^4.0.2", "timeago.js": "4.0.2",
"typescript": "^5.9.3", "typescript": "5.9.3",
"typescript-eslint": "^8.57.0" "typescript-eslint": "8.57.0"
} }
} }

12845
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,2 +0,0 @@
onlyBuiltDependencies:
- swup