mirror of
https://github.com/Kizuren/kizuren.dev.git
synced 2025-12-21 21:16:12 +01:00
Switched to bun
This commit is contained in:
parent
590388ee48
commit
4e2c6c7626
4 changed files with 4055 additions and 18685 deletions
129
.github/workflows/build.yml
vendored
129
.github/workflows/build.yml
vendored
|
|
@ -2,44 +2,109 @@ name: Build Docker Image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
#release:
|
release:
|
||||||
# types: [created]
|
types: [created]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
# Update lockfile for Dependabot PRs
|
||||||
|
update-lockfile:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name == 'pull_request' && startsWith(github.head_ref, 'dependabot/')
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
with:
|
||||||
|
ref: ${{ github.head_ref }}
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- uses: oven-sh/setup-bun@v2
|
||||||
|
- name: Install and update lockfile
|
||||||
|
run: bun install
|
||||||
|
- name: Commit and push updated lockfile
|
||||||
|
run: |
|
||||||
|
git config user.name "github-actions[bot]"
|
||||||
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
git add bun.lock
|
||||||
|
git commit -m "chore: update lockfile (auto-fix for Dependabot PR)" || exit 0
|
||||||
|
git push
|
||||||
|
|
||||||
|
# Build and don't push Docker image for Dependabot PRs
|
||||||
|
build_dependabot:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: update-lockfile
|
||||||
|
if: github.event_name == 'pull_request' && startsWith(github.head_ref, 'dependabot/')
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
with:
|
||||||
|
ref: ${{ github.head_ref }}
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Login to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Set image metadata
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: ghcr.io/${{ github.repository }}
|
||||||
|
tags: |
|
||||||
|
type=ref,event=tag
|
||||||
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
|
type=sha,format=short
|
||||||
|
type=ref,event=branch
|
||||||
|
type=ref,event=pr
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
push: false
|
||||||
|
platforms: linux/amd64,linux/arm64/v8
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
build:
|
||||||
uses: docker/setup-buildx-action@v3
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'dependabot/'))
|
||||||
- name: Login to GitHub Container Registry
|
permissions:
|
||||||
uses: docker/login-action@v3
|
contents: read
|
||||||
with:
|
packages: write
|
||||||
registry: ghcr.io
|
steps:
|
||||||
username: ${{ github.actor }}
|
- name: Checkout code
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
uses: actions/checkout@v5
|
||||||
|
- name: Set up Docker Buildx
|
||||||
- name: Docker meta
|
uses: docker/setup-buildx-action@v3
|
||||||
id: meta
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
images: ghcr.io/${{ github.repository }}
|
registry: ghcr.io
|
||||||
tags: |
|
username: ${{ github.actor }}
|
||||||
type=ref,event=tag
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
type=raw,value=latest,enable={{is_default_branch}}
|
- name: Set image metadata
|
||||||
|
id: meta
|
||||||
- name: Build and push Docker image
|
uses: docker/metadata-action@v5
|
||||||
uses: docker/build-push-action@v6
|
with:
|
||||||
with:
|
images: ghcr.io/${{ github.repository }}
|
||||||
context: .
|
tags: |
|
||||||
push: true
|
type=ref,event=tag
|
||||||
platforms: linux/amd64, linux/arm64/v8
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
type=sha,format=short
|
||||||
|
type=ref,event=branch
|
||||||
|
type=ref,event=pr
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
platforms: linux/amd64,linux/arm64/v8
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
18631
package-lock.json
generated
18631
package-lock.json
generated
File diff suppressed because it is too large
Load diff
47
package.json
47
package.json
|
|
@ -10,30 +10,35 @@
|
||||||
"postinstall": "nuxt prepare"
|
"postinstall": "nuxt prepare"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/content": "^3.4.0",
|
"@nuxt/content": "^3.6.3",
|
||||||
"@nuxt/eslint": "^1.2.0",
|
"@nuxt/eslint": "^1.9.0",
|
||||||
"@nuxt/fonts": "^0.11.0",
|
"@nuxt/fonts": "^0.11.4",
|
||||||
"@nuxt/icon": "^1.11.0",
|
"@nuxt/icon": "^1.15.0",
|
||||||
"@nuxt/image": "^1.10.0",
|
"@nuxt/image": "^1.11.0",
|
||||||
"@nuxt/scripts": "^0.11.2",
|
"@nuxt/scripts": "^0.11.13",
|
||||||
"@nuxt/test-utils": "^3.17.2",
|
"@nuxt/test-utils": "^3.19.2",
|
||||||
"@nuxt/ui": "^3.0.1",
|
"@nuxt/ui": "^3.3.3",
|
||||||
"@tailwindcss/postcss": "^4.0.15",
|
"@tailwindcss/postcss": "^4.1.12",
|
||||||
"@tailwindcss/vite": "^4.0.15",
|
"@tailwindcss/vite": "^4.1.12",
|
||||||
"@unhead/vue": "^2.0.0-rc.8",
|
"@unhead/vue": "^2.0.14",
|
||||||
"animate.css": "^4.1.1",
|
"animate.css": "^4.1.1",
|
||||||
"eslint": "^9.23.0",
|
"eslint": "^9.34.0",
|
||||||
"nuxt": "^3.16.1",
|
"nuxt": "^3.18.1",
|
||||||
"sass": "^1.86.0",
|
"sass": "^1.91.0",
|
||||||
"tailwindcss": "^4.0.15",
|
"tailwindcss": "^4.1.12",
|
||||||
"typescript": "^5.8.2",
|
"typescript": "^5.9.2",
|
||||||
"vue": "^3.5.13",
|
"vue": "^3.5.20",
|
||||||
"vue-router": "^4.5.0"
|
"vue-router": "^4.5.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@iconify-json/material-symbols": "^1.2.17",
|
"@iconify-json/material-symbols": "^1.2.33",
|
||||||
"@iconify-json/simple-icons": "^1.2.29",
|
"@iconify-json/simple-icons": "^1.2.50",
|
||||||
"@nuxtjs/mdc": "^0.16.1",
|
"@nuxtjs/mdc": "^0.16.1",
|
||||||
"@tailwindcss/typography": "^0.5.16"
|
"@tailwindcss/typography": "^0.5.16"
|
||||||
}
|
},
|
||||||
|
"trustedDependencies": [
|
||||||
|
"@parcel/watcher",
|
||||||
|
"@tailwindcss/oxide",
|
||||||
|
"unrs-resolver"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue