chore(repo): move deploy files under deploy

This commit is contained in:
t8y2 2026-05-18 02:20:30 +08:00
parent 8192a884b7
commit 84018eae89
13 changed files with 12 additions and 8 deletions

View File

@ -30,12 +30,12 @@ jobs:
APP_DIR="apps/dbx"
mkdir -p "${APP_DIR}/latest"
cp "${{ github.workspace }}/1panel/data.yml" "${APP_DIR}/data.yml"
cp "${{ github.workspace }}/1panel/README.md" "${APP_DIR}/README.md"
if [ -f "${{ github.workspace }}/1panel/logo.png" ]; then
cp "${{ github.workspace }}/1panel/logo.png" "${APP_DIR}/logo.png"
cp "${{ github.workspace }}/deploy/1panel/data.yml" "${APP_DIR}/data.yml"
cp "${{ github.workspace }}/deploy/1panel/README.md" "${APP_DIR}/README.md"
if [ -f "${{ github.workspace }}/deploy/1panel/logo.png" ]; then
cp "${{ github.workspace }}/deploy/1panel/logo.png" "${APP_DIR}/logo.png"
fi
cp -r "${{ github.workspace }}/1panel/latest/." "${APP_DIR}/latest/"
cp -r "${{ github.workspace }}/deploy/1panel/latest/." "${APP_DIR}/latest/"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

View File

@ -30,6 +30,7 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
file: deploy/Dockerfile
platforms: ${{ matrix.platform }}
outputs: type=image,name=${{ secrets.DOCKERHUB_USERNAME }}/dbx,push-by-digest=true,name-canonical=true,push=true
cache-from: type=gha,scope=${{ matrix.platform }}-dev

View File

@ -228,6 +228,7 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
file: deploy/Dockerfile
platforms: ${{ matrix.platform }}
outputs: type=image,name=${{ secrets.DOCKERHUB_USERNAME }}/dbx,push-by-digest=true,name-canonical=true,push=true
cache-from: type=gha,scope=${{ matrix.platform }}

View File

@ -160,7 +160,7 @@ DBX provides a web version that can be deployed via Docker.
docker run -d --name dbx -p 4224:4224 -v dbx-data:/app/data t8y2/dbx
```
Or with Docker Compose:
Or with Docker Compose. A ready-to-use example lives at `deploy/docker-compose.yml`:
```yaml
services:

View File

@ -160,7 +160,7 @@ DBX 提供 Web 版本,可通过 Docker 部署。
docker run -d --name dbx -p 4224:4224 -v dbx-data:/app/data t8y2/dbx
```
或使用 Docker Compose
或使用 Docker Compose,示例文件位于 `deploy/docker-compose.yml`
```yaml
services:

View File

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

View File

@ -1,6 +1,8 @@
services:
dbx:
build: .
build:
context: ..
dockerfile: deploy/Dockerfile
ports:
- "4224:4224"
environment: