This commit is contained in:
wood911010 committed 2025-07-31 00:04:32 +08:00
1 parent f67be40680
commit 5d1baa8955
1 file changed
+8 -3
+8 -3
View File
@@ -49,7 +49,7 @@ jobs:
username: root
password: ${{ secrets.PASS_1 }}
port: 22
source: "backend-image.tar,backend/configs/config.example.yaml"
source: "backend-image.tar,backend/configs/config.example.yaml,backend/configs/config.yaml"
target: "/opt/license-manager/"
- name: Deploy to server
@@ -75,8 +75,13 @@ jobs:
# Create config file if not exists
if [ ! -f config.yaml ]; then
cp backend/configs/config.example.yaml config.yaml
echo "Created config.yaml from example. Please review and update configuration."
if [ -f backend/configs/config.yaml ]; then
cp backend/configs/config.yaml config.yaml
echo "Created config.yaml from backend configs."
else
cp backend/configs/config.example.yaml config.yaml
echo "Created config.yaml from example. Please review and update configuration."
fi
fi
# Run new container