fix
This commit is contained in:
1 parent
f67be40680
commit
5d1baa8955
1 file changed
+8
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user