更新 .gitea/workflows/build-dev.yaml

This commit is contained in:
2025-11-25 09:40:54 +00:00
parent 82d8d119c7
commit e641de13e5

View File

@@ -32,13 +32,13 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: code.paipai.life/backend/rn-outside
images: code.paipai.life/backend/rn-h5
tags: |
type=raw,value=latest
- name: Build Docker image
run: |
docker build -t code.paipai.life/backend/rn-h5:latest .
docker build -f Dockerfile-dev -t code.paipai.life/backend/rn-h5:latest .
- name: Push Docker image
run: |
@@ -63,7 +63,7 @@ jobs:
password: ${{ secrets.DEV_SERVER_PASSWORD }}
port: 22
source: "docker-compose-dev.yaml"
target: "/home/paipai/data/rn-outside"
target: "/home/paipai/data/rn-h5"
override: true
- name: Deploy with Docker Compose
@@ -75,10 +75,10 @@ jobs:
port: 22
script: |
# 切换到项目目录
cd /home/paipai/data/rn-outside
cd /home/paipai/data/rn-h5
# 拉取最新镜像
docker pull code.paipai.life/backend/rn-outside:latest
docker pull code.paipai.life/backend/rn-h5:latest
# 使用 docker-compose 部署
docker compose -f docker-compose-dev.yaml down