playbooks/deploy 3d.yml

10 lines
330 B
YAML

---
- name: deploy 3d
hosts: all
tasks:
- name: Go to the 3d directory
command: chdir=/var/www/nuxt/3d git pull origin master
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