- switched bee dashboard to my own branch
- added beed dashboard deployment to Cloudflare Pages
This commit is contained in:
@@ -6,6 +6,28 @@ on:
|
||||
- 'bee-dashboard/**'
|
||||
- '.gitea/workflows/build-bee-dashboard.yaml'
|
||||
jobs:
|
||||
"Build & deploy Cloudflare page":
|
||||
runs-on: hostinger
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: docker-images
|
||||
- name: Checkout bee-dashboard sources
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: git@github.com:woggioni/bee-dashboard.git
|
||||
ref: add-redistribution-stats
|
||||
path: src
|
||||
- name: Execute build
|
||||
run: cd src && npm install
|
||||
- name: Copy _headers file
|
||||
run: cp docker-images/bee-dashboard/_headers src/build
|
||||
- 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 }}
|
||||
"Build bee-dashboard docker images":
|
||||
runs-on: hostinger
|
||||
steps:
|
||||
@@ -40,4 +62,3 @@ jobs:
|
||||
"gitea.woggioni.net/woggioni/bee-dashboard:0.32.0"
|
||||
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/bee-dashboard:buildx
|
||||
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/bee-dashboard:buildx
|
||||
|
||||
|
@@ -5,10 +5,10 @@ FROM base AS build
|
||||
ARG VERSION
|
||||
RUN --mount=type=cache,target=/var/cache/apk apk add chromium
|
||||
WORKDIR /src
|
||||
ADD git@github.com:ethersphere/bee-dashboard.git#v${VERSION} .
|
||||
RUN PUPPETEER_SKIP_DOWNLOAD=1 npm ci
|
||||
RUN npm run build
|
||||
#ADD git@github.com:ethersphere/bee-dashboard.git#v${VERSION} .
|
||||
ADD git@github.com:woggioni/bee-dashboard.git#add-redistribution-stats .
|
||||
RUN PUPPETEER_SKIP_DOWNLOAD=1 npm install
|
||||
|
||||
FROM gitea.woggioni.net/woggioni/nginx:v1.29.0 AS final
|
||||
FROM gitea.woggioni.net/woggioni/nginx:v1.29.1 AS final
|
||||
COPY --from=build /src/build /srv/http
|
||||
COPY bee-dashboard.conf /etc/nginx/conf.d/bee-dashboard.conf
|
||||
|
Reference in New Issue
Block a user