playbooks/deploy 3d.yml

15 lines
390 B
YAML

---
- name: Deploy 3d
hosts: all
tasks:
- 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 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