updated bee dashboard to 0.35.1
CI / node-build (push) Failing after 26s
CI / docker-build (push) Has been skipped
CI / deploy (push) Has been skipped

This commit is contained in:
2026-06-23 06:11:44 +08:00
parent b8269e690e
commit 21c9741b2d
2 changed files with 41 additions and 22 deletions
+40 -21
View File
@@ -6,36 +6,47 @@ on:
- 'bee-dashboard/**'
- '.gitea/workflows/build-bee-dashboard.yaml'
jobs:
"Build & deploy Cloudflare page":
runs-on: woryzen
node-build:
runs-on: hostinger
container:
image: ghcr.io/pnpm/pnpm:11.8.0
steps:
- name: Checkout sources
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
path: docker-images
- name: Checkout bee-dashboard sources
run: /usr/sbin/git clone -b 0.33.3 --depth 1 https://github.com/woggioni/bee-dashboard.git src
run: /usr/sbin/git clone -b 0.35.1 --depth 1 https://gitea.woggioni.net/woggioni/bee-dashboard.git src
- name: Execute build
run: cd src && npm install
run: cd src
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- name: Copy _headers file
run: cp docker-images/bee-dashboard/_headers src/build
- name: Create archive
run: tar -czf docker-images/bee-dashboard/bee-dashboard.tar -C src/build .
# - name: Publish archive to gitea.woggioni.net
# run: curl --user woggioni:${{ secrets.PUBLISHER_TOKEN }} --upload-file docker-images/bee-dashboard/bee-dashboard.tar https://gitea.woggioni.net/api/packages/woggioni/generic/bee-dashboard/0.33.3/bee-dashboard.tar
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.4.0
- name: Upload folder as artifact
uses: actions/upload-artifact@v4
with:
driver: docker-container
platforms: |
linux/amd64
linux/arm64
name: build-artifact
path: docker-images/bee-dashboard/bee-dashboard.tar
# - name: Publish archive to gitea.woggioni.net
# run: curl --user woggioni:${{ secrets.PUBLISHER_TOKEN }} --upload-file docker-images/bee-dashboard/bee-dashboard.tar https://gitea.woggioni.net/api/packages/woggioni/generic/bee-dashboard/0.35.1/bee-dashboard.tar
docker-build:
runs-on: hostinger
needs: node-build
steps:
- name: Login to Gitea container registry
uses: docker/login-action@v3
with:
registry: gitea.woggioni.net
username: woggioni
password: ${{ secrets.PUBLISHER_TOKEN }}
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: build.artifact
path: docker-images/bee-dashboard/bee-dashboard.tar
- name: Build and push bee-dashboard images
uses: docker/build-push-action@v6
with:
@@ -46,12 +57,20 @@ jobs:
linux/arm64
push: true
pull: true
ssh: default=/home/luser/.ssh/id_ed25519
build-args: "VERSION=0.33.3"
build-args: "VERSION=0.35.1"
tags: |
"gitea.woggioni.net/woggioni/bee-dashboard:0.33.3"
# - name: Deploy to Cloudflare
# run: npx wrangler pages deploy --project-name bee-dashboard --branch main src/build
# env:
# CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
# CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
"gitea.woggioni.net/woggioni/bee-dashboard:0.35.1"
deploy:
runs-on: hostinger
needs: node-build
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: build.artifact
path: docker-images/bee-dashboard/bee-dashboard.tar
- name: Deploy to Cloudflare
run: npx wrangler pages deploy --project-name bee-dashboard --branch main src/build
env:
CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}