29 lines
883 B
YAML
29 lines
883 B
YAML
---
|
|
- name: Deploy SDK Shipping Service release
|
|
hosts: gitea:google-sdk
|
|
remote_user: root
|
|
|
|
tasks:
|
|
- name: remove previous build output
|
|
file:
|
|
path: /data/admin_backend/release/shipping_service/shipping_service
|
|
state: absent
|
|
delegate_to: localhost
|
|
- name: pack.sh
|
|
shell: sh /data/admin_backend/release/shipping_service/pack.sh
|
|
delegate_to: localhost
|
|
- name: copy main
|
|
copy:
|
|
src: /data/admin_backend/release/shipping_service/shipping_service
|
|
dest: /data/meow/shipping_service/shipping_service
|
|
mode: 0755
|
|
- name: copy start script
|
|
copy:
|
|
src: /data/admin_backend/release/shipping_service/start.sh
|
|
dest: /data/meow/shipping_service
|
|
mode: 0755
|
|
- name: Enable and start service
|
|
systemd:
|
|
name: shipping
|
|
state: restarted
|
|
enabled: yes |