From 21c6706914115644e36646b5d713077d0cb9de97 Mon Sep 17 00:00:00 2001 From: omidshj Date: Mon, 26 Aug 2024 15:19:35 +0330 Subject: [PATCH] debug --- deploy 3d.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/deploy 3d.yml b/deploy 3d.yml index 18b9ac4..5123f60 100644 --- a/deploy 3d.yml +++ b/deploy 3d.yml @@ -1,10 +1,14 @@ --- -- name: deploy 3d +- name: Deploy 3d hosts: all tasks: - - name: Go to the 3d directory - command: chdir=/var/www/nuxt/3d git pull origin master + - name: Go to the 3d directory and pull the latest code + shell: git pull origin master + args: + chdir: /var/www/nuxt/3d register: git_result - - name: build source - command: chdir=/var/www/nuxt/3d docker run -w /srv -v $(pwd):/srv -u $(id -u ${USER}):$(id -g ${USER}) --rm node:20.8 npm run buil \ No newline at end of file + - 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