This commit is contained in:
@@ -21,8 +21,8 @@ jobs:
|
|||||||
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: 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
|
# 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
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3.4.0
|
uses: docker/setup-buildx-action@v3.4.0
|
||||||
with:
|
with:
|
||||||
@@ -39,20 +39,19 @@ jobs:
|
|||||||
- 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:
|
||||||
|
context: "docker-images/bee-dashboard"
|
||||||
|
builder: multiplatform-builder
|
||||||
platforms: |
|
platforms: |
|
||||||
linux/amd64
|
linux/amd64
|
||||||
linux/arm64
|
linux/arm64
|
||||||
context: "docker-images/bee-dashboard"
|
|
||||||
push: true
|
push: true
|
||||||
pull: true
|
pull: true
|
||||||
ssh: default=/home/luser/.ssh/id_ed25519
|
ssh: default=/home/luser/.ssh/id_ed25519
|
||||||
build-args: "VERSION=0.33.3"
|
build-args: "VERSION=0.33.3"
|
||||||
tags: |
|
tags: |
|
||||||
"gitea.woggioni.net/woggioni/bee-dashboard:0.33.3"
|
"gitea.woggioni.net/woggioni/bee-dashboard:0.33.3"
|
||||||
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/bee-dashboard:buildx
|
# - name: Deploy to Cloudflare
|
||||||
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/bee-dashboard:buildx
|
# run: npx wrangler pages deploy --project-name bee-dashboard --branch main src/build
|
||||||
- name: Deploy to Cloudflare
|
# env:
|
||||||
run: npx wrangler pages deploy --project-name bee-dashboard --branch main src/build
|
# CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
env:
|
# CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
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.29.4
|
FROM gitea.woggioni.net/woggioni/nginx:v1.31.1
|
||||||
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
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80 http2;
|
||||||
|
listen [::]:80 http2;
|
||||||
root /srv/http;
|
root /srv/http;
|
||||||
location / {
|
location / {
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user