From 0744f18deff1ba615ea4e799a8f0ce88aaccbaf0 Mon Sep 17 00:00:00 2001
From: omidshj <omid.shj@gmail.com>
Date: Mon, 26 Aug 2024 15:26:11 +0330
Subject: [PATCH] debug

---
 deploy 3d.yml | 26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

diff --git a/deploy 3d.yml b/deploy 3d.yml
index 9b2bd6b..0d7b6df 100644
--- a/deploy 3d.yml	
+++ b/deploy 3d.yml	
@@ -2,16 +2,20 @@
 - name: Deploy 3d
   hosts: all
   tasks:
-    - name: Perform deployment tasks in the 3d directory
-      block:
-        - name: Pull the latest code
-          shell: git pull origin master
-          register: git_result
-        - name: Build source with Docker
-          shell: docker run -w /srv -v $(pwd):/srv -u $(id -u):$(id -g) --rm node:20.8 npm run build
-        - name: down container
-          shell: docker compose down
-        - name: start container
-          shell: docker compose up -d
+    - name: Pull the latest code
+      shell: git pull origin master
+      args:
+        chdir: /var/www/nuxt/3d
+      register: git_result
+    - name: Build source with Docker
+      shell: docker run -w /srv -v $(pwd):/srv -u $(id -u):$(id -g) --rm node:20.8 npm run build
+      args:
+        chdir: /var/www/nuxt/3d
+    - name: down container
+      shell: docker compose down
+      args:
+        chdir: /var/www/nuxt/3d
+    - name: start container
+      shell: docker compose up -d
       args:
         chdir: /var/www/nuxt/3d