feat: add gh action for linux nightly installer (#5191)
* feat: add gh action for nightly installer Signed-off-by: Vishnu Narayanan <vishnu@chatwoot.com>
This commit is contained in:
58
.github/workflows/nightly_installer.yml
vendored
Normal file
58
.github/workflows/nightly_installer.yml
vendored
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
# #
|
||||||
|
# #
|
||||||
|
# # Linux nightly installer action
|
||||||
|
# # This action will try to install and setup
|
||||||
|
# # chatwoot on an Ubuntu 20.04 machine using
|
||||||
|
# # the linux installer script.
|
||||||
|
# #
|
||||||
|
# # This is set to run daily at midnight.
|
||||||
|
# #
|
||||||
|
|
||||||
|
name: Run Linux nightly installer
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
nightly:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: get installer
|
||||||
|
run: |
|
||||||
|
wget https://get.chatwoot.app/linux/install.sh
|
||||||
|
chmod +x install.sh
|
||||||
|
|
||||||
|
- name: create input file
|
||||||
|
run: |
|
||||||
|
echo "no" > input
|
||||||
|
echo "yes" >> input
|
||||||
|
|
||||||
|
- name: Run the installer
|
||||||
|
run: |
|
||||||
|
sudo ./install.sh --install < input
|
||||||
|
|
||||||
|
# temp fix for postgresql not starting
|
||||||
|
# automatically in gh action env
|
||||||
|
- name: start postgresql service
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
sudo service postgresql start
|
||||||
|
|
||||||
|
#re-running the installer again
|
||||||
|
- name: Run the installer again
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
sudo ./install.sh --install < input
|
||||||
|
|
||||||
|
|
||||||
|
# disabling http verify for now as http
|
||||||
|
# access to port 3000 fails in gh action env
|
||||||
|
# - name: Verify
|
||||||
|
# if: always()
|
||||||
|
# run: |
|
||||||
|
# sudo netstat -ntlp | grep 3000
|
||||||
|
# sudo systemctl restart chatwoot.target
|
||||||
|
# curl http://localhost:3000/api
|
||||||
|
|
||||||
Reference in New Issue
Block a user