debug
parent
14dfbf545e
commit
21c6706914
|
@ -1,10 +1,14 @@
|
||||||
---
|
---
|
||||||
- name: deploy 3d
|
- name: Deploy 3d
|
||||||
hosts: all
|
hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- name: Go to the 3d directory
|
- name: Go to the 3d directory and pull the latest code
|
||||||
command: chdir=/var/www/nuxt/3d git pull origin master
|
shell: git pull origin master
|
||||||
|
args:
|
||||||
|
chdir: /var/www/nuxt/3d
|
||||||
register: git_result
|
register: git_result
|
||||||
|
|
||||||
- name: build source
|
- name: Build source with Docker
|
||||||
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
|
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
|
||||||
|
|
Loading…
Reference in New Issue