updated bee dashboard to 0.35.1
This commit is contained in:
@@ -6,36 +6,47 @@ on:
|
|||||||
- 'bee-dashboard/**'
|
- 'bee-dashboard/**'
|
||||||
- '.gitea/workflows/build-bee-dashboard.yaml'
|
- '.gitea/workflows/build-bee-dashboard.yaml'
|
||||||
jobs:
|
jobs:
|
||||||
"Build & deploy Cloudflare page":
|
node-build:
|
||||||
runs-on: woryzen
|
runs-on: hostinger
|
||||||
|
container:
|
||||||
|
image: ghcr.io/pnpm/pnpm:11.8.0
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
path: docker-images
|
path: docker-images
|
||||||
- name: Checkout bee-dashboard sources
|
- 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
|
- name: Execute build
|
||||||
run: cd src && npm install
|
run: cd src
|
||||||
|
- run: pnpm install --frozen-lockfile
|
||||||
|
- run: pnpm run build
|
||||||
- name: Copy _headers file
|
- name: Copy _headers file
|
||||||
run: cp docker-images/bee-dashboard/_headers src/build
|
run: cp docker-images/bee-dashboard/_headers src/build
|
||||||
- name: Create archive
|
- name: Create archive
|
||||||
run: tar -czf docker-images/bee-dashboard/bee-dashboard.tar -C src/build .
|
run: tar -czf docker-images/bee-dashboard/bee-dashboard.tar -C src/build .
|
||||||
# - name: Publish archive to gitea.woggioni.net
|
- name: Upload folder as artifact
|
||||||
# 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
|
uses: actions/upload-artifact@v4
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3.4.0
|
|
||||||
with:
|
with:
|
||||||
driver: docker-container
|
name: build-artifact
|
||||||
platforms: |
|
path: docker-images/bee-dashboard/bee-dashboard.tar
|
||||||
linux/amd64
|
# - name: Publish archive to gitea.woggioni.net
|
||||||
linux/arm64
|
# 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
|
- name: Login to Gitea container registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: gitea.woggioni.net
|
registry: gitea.woggioni.net
|
||||||
username: woggioni
|
username: woggioni
|
||||||
password: ${{ secrets.PUBLISHER_TOKEN }}
|
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
|
- name: Build and push bee-dashboard images
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
@@ -46,12 +57,20 @@ jobs:
|
|||||||
linux/arm64
|
linux/arm64
|
||||||
push: true
|
push: true
|
||||||
pull: true
|
pull: true
|
||||||
ssh: default=/home/luser/.ssh/id_ed25519
|
build-args: "VERSION=0.35.1"
|
||||||
build-args: "VERSION=0.33.3"
|
|
||||||
tags: |
|
tags: |
|
||||||
"gitea.woggioni.net/woggioni/bee-dashboard:0.33.3"
|
"gitea.woggioni.net/woggioni/bee-dashboard:0.35.1"
|
||||||
# - name: Deploy to Cloudflare
|
deploy:
|
||||||
# run: npx wrangler pages deploy --project-name bee-dashboard --branch main src/build
|
runs-on: hostinger
|
||||||
# env:
|
needs: node-build
|
||||||
# CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
|
steps:
|
||||||
# CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
- 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 }}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM gitea.woggioni.net/woggioni/nginx:v1.31.1
|
FROM gitea.woggioni.net/woggioni/nginx:v1.31.2
|
||||||
RUN mkdir /srv/http
|
RUN mkdir /srv/http
|
||||||
RUN --mount=type=bind,source=bee-dashboard.tar,target=/bee-dashboard.tar tar -xf /bee-dashboard.tar -C /srv/http
|
RUN --mount=type=bind,source=bee-dashboard.tar,target=/bee-dashboard.tar tar -xf /bee-dashboard.tar -C /srv/http
|
||||||
COPY bee-dashboard.conf /etc/nginx/conf.d/http/bee-dashboard.conf
|
COPY bee-dashboard.conf /etc/nginx/conf.d/http/bee-dashboard.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user