update
Some checks failed
Deploy CD Server / deploy (push) Failing after 1m36s

This commit is contained in:
DatTT127
2026-07-19 18:35:37 +07:00
parent 174962d25a
commit e3b6989af8

View File

@@ -2,8 +2,6 @@ name: Deploy CD Server
on:
push:
branches: ["test_gitea"]
# - main
# paths:
# - 'workspace/sprint_1_2/CODEBASE/deps/implementation/CD_server/**'
@@ -27,7 +25,8 @@ jobs:
set -euo pipefail
DEPLOY_DIR="/opt/cd-server"
sudo mkdir -p "$DEPLOY_DIR"
sudo chown deploy:docker "$DEPLOY_DIR"
sudo chown $USER:$USER "$DEPLOY_DIR"
sudo chmod 755 "$DEPLOY_DIR"
echo "[prepare] $DEPLOY_DIR ready"
- name: Copy CD server code to VM
@@ -39,7 +38,7 @@ jobs:
port: ${{ vars.LIGHTSAIL_PORT }}
source: "workspace/sprint_1_2/CODEBASE/deps/implementation/CD_server/"
target: "/opt/cd-server/"
strip_components: 0
strip_components: 6
- name: Deploy to Lightsail VM
uses: appleboy/ssh-action@v1.0.3