playbooks/deploy 3d.yml

22 lines
572 B
YAML
Raw Normal View History

2024-08-26 15:11:51 +03:30
---
2024-08-26 15:19:35 +03:30
- name: Deploy 3d
2024-08-26 15:11:51 +03:30
hosts: all
tasks:
2024-08-26 15:26:11 +03:30
- 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
2024-08-26 15:19:35 +03:30
args:
chdir: /var/www/nuxt/3d