From e3b6989af8373c90870d50343e68d11eeca7d8a7 Mon Sep 17 00:00:00 2001 From: DatTT127 Date: Sun, 19 Jul 2026 18:35:37 +0700 Subject: [PATCH] update --- .gitea/workflows/deploy-cd-server.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy-cd-server.yaml b/.gitea/workflows/deploy-cd-server.yaml index 826e094..9d5446f 100644 --- a/.gitea/workflows/deploy-cd-server.yaml +++ b/.gitea/workflows/deploy-cd-server.yaml @@ -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