debug
parent
25e003f7d5
commit
0744f18def
|
@ -2,16 +2,20 @@
|
||||||
- name: Deploy 3d
|
- name: Deploy 3d
|
||||||
hosts: all
|
hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- name: Perform deployment tasks in the 3d directory
|
- name: Pull the latest code
|
||||||
block:
|
shell: git pull origin master
|
||||||
- name: Pull the latest code
|
args:
|
||||||
shell: git pull origin master
|
chdir: /var/www/nuxt/3d
|
||||||
register: git_result
|
register: git_result
|
||||||
- name: Build source with Docker
|
- 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
|
shell: docker run -w /srv -v $(pwd):/srv -u $(id -u):$(id -g) --rm node:20.8 npm run build
|
||||||
- name: down container
|
args:
|
||||||
shell: docker compose down
|
chdir: /var/www/nuxt/3d
|
||||||
- name: start container
|
- name: down container
|
||||||
shell: docker compose up -d
|
shell: docker compose down
|
||||||
|
args:
|
||||||
|
chdir: /var/www/nuxt/3d
|
||||||
|
- name: start container
|
||||||
|
shell: docker compose up -d
|
||||||
args:
|
args:
|
||||||
chdir: /var/www/nuxt/3d
|
chdir: /var/www/nuxt/3d
|
||||||
|
|
Loading…
Reference in New Issue