Compare commits

..

14 Commits

Author SHA1 Message Date
mgite
3938429928 Changes
Some checks failed
Update odoo 18 / update (push) Failing after 1m25s
2024-10-29 17:56:55 +04:00
mgite
47aee5c6fc submodule
Some checks failed
Update odoo 18 / update (push) Failing after 1m24s
2024-10-29 17:51:52 +04:00
mgite
60f7a00813 Add existing directory as a submodule
Some checks failed
Update odoo 18 / update (push) Has been cancelled
2024-10-29 17:50:23 +04:00
mgite
aad19bc7f3 Testing
Some checks failed
Update odoo 18 / update (push) Failing after 1m28s
2024-10-29 17:43:55 +04:00
mate
59fe076ed8 Merge branch 'dev' of http://gitea.anbhub.com:3000/gitea/bross_hms into dev
Some checks failed
Update odoo 18 / update (push) Has been cancelled
2024-10-29 17:38:31 +04:00
mate
b87c76a732 Change on node 4 2024-10-29 17:38:03 +04:00
mgite
8619e7908e Testing
Some checks failed
Update odoo 18 / update (push) Failing after 1m24s
2024-10-29 17:10:46 +04:00
mgite
731853ced4 Testing
Some checks failed
Update odoo 18 / update (push) Failing after 15s
2024-10-29 17:09:28 +04:00
mgite
3f9f40304b Test
Some checks failed
Update odoo 18 / update (push) Failing after 15s
2024-10-29 17:05:04 +04:00
mgite
140bf1aaad Test
Some checks failed
Update odoo 18 / update (push) Failing after 9s
2024-10-29 17:02:34 +04:00
mgite
4952a1b76b Test
Some checks failed
Update odoo 18 / update (push) Failing after 9s
2024-10-29 17:01:52 +04:00
mgite
34122cf317 Test
Some checks failed
Update odoo 18 / update (push) Failing after 10s
2024-10-29 16:59:45 +04:00
mgite
f281ce399a Test
Some checks failed
Update odoo 18 / update (push) Failing after 14s
2024-10-29 16:57:05 +04:00
mgite
3e77f7282a Test
Some checks failed
Update odoo 18 / update (push) Failing after 39s
2024-10-29 16:49:30 +04:00
5 changed files with 79 additions and 29 deletions

2
.env
View File

@ -15,5 +15,5 @@ PASSWORD="odoo"
ADDONS="--addons-path=/opt/odoo/addons/,/opt/odoo/customaddons/$CUSTOMADDONS_DIR"
# ARGS=""
# ARGS="-d bross"
ARGS="-d cybro_hms -u bross_hms,exely_integration,bross_bank_management"
#ARGS="-d cybro_hms -u bross_hms,exely_integration,bross_bank_management"
# DEBUG="-m debugpy --listen 0.0.0.0:5678 --wait-for-client"

View File

@ -15,6 +15,9 @@ jobs:
- name: Setup correct time in build container
run: ln -sf /usr/share/zoneinfo/Asia/Tbilisi /etc/localtime
- name: Install sshpass
run: apt update && apt install -y sshpass
- name: Checkout repository
uses: actions/checkout@v4
with:
@ -24,29 +27,38 @@ jobs:
path: .
fetch-depth: 0
- name: Deploy to main environment
# - name: Testing
# run: |
# modules_to_update=$(git diff --name-only ${{ gitea.event.before }}..${{ gitea.event.after }} | awk -F/ '{print $1}')
# echo $modules_to_update
# export SSHPASS=${{ secrets.SERVER_SSH_PASSWORD }}
# export STACK_PATH="/home/sysop/odoo18/customaddons/bross_hms"
# sshpass -e ssh -p ${{ secrets.SERVER_SSH_PORT }} -o StrictHostKeyChecking=no \
# ${{ secrets.SERVER_SSH_USER }}@${{ secrets.SERVER_SSH_HOST }} "echo $modules_to_update > testing_file"
- name: Deploy to dev environment
if: gitea.ref == 'refs/heads/dev'
run: |
### Get current commit
# commit_hash=$(git rev-parse --short HEAD)
### Update local repo
# cd /opt/odoo/extra-addons
# git pull
export SSHPASS=${{ secrets.SERVER_SSH_PASSWORD }}
export STACK_PATH="/home/sysop/odoo18/customaddons/bross_hms"
### Get modules list to update
modules_to_update=$(git diff --name-only ${{ gitea.event.before }}..${{ gitea.event.after }} | awk -F/ '{print $1}' | uniq | xargs -I {} sh -c 'find {} -type f -name "__manifest__.py" | grep -q "__manifest__.py" && echo {}' 2>/dev/null | sed -z 's/\n/,/g; s/,$/\n/')
echo $modules_to_update
### Generate update string
# if [ -z "${modules_to_update}" ]; then
# echo "No module to update"
# # args="-d fms"
# else
# echo "Modules to update set"
# args="-d fms_prod -u ${modules_to_update}"
# docker compose -f /opt/odoo/docker-compose.yml down
# export ADDONS="--addons-path=/opt/odoo/addons/,/mnt/extra-addons/" && export ARGS=${args} && docker compose -f /opt/odoo/docker-compose.yml up -d
# fi
- name: Install sshpass
run: apt update && apt install -y sshpass
### Generate update string
if [ -z "${modules_to_update}" ]; then
echo "No module to update"
else
echo "Modules to update set"
args="-d bross_hms_dev -u ${modules_to_update}"
sshpass -e ssh -p ${{ secrets.SERVER_SSH_PORT }} -o StrictHostKeyChecking=no \
${{ secrets.SERVER_SSH_USER }}@${{ secrets.SERVER_SSH_HOST }} \
"cd $STACK_PATH && git pull && docker compose -f docker-compose-dev.yml down && export ARGS='${args}' && docker compose -f docker-compose-dev.yml up -d"
fi

@ -1 +1 @@
Subproject commit 1b3fe48b826ce31d587b7062041d23a29d376944
Subproject commit 026e86100527c2105c8c396d1b30bbdefd612fe6

View File

@ -5,23 +5,23 @@ services:
command: >
-c max_wal_size=4GB
env_file:
.env
dev.env
# ports:
# - 5433:5432
volumes:
- postgres_17_data:/var/lib/postgresql/data/
- postgres_17_odoo_data:/var/lib/postgresql/data/
odoo:
image: odoo-dev:18
restart: unless-stopped
env_file:
.env
dev.env
# ports:
# - 5678:5678
# - 8069:8069
volumes:
- /home/sysop/odoo18/:/opt/odoo/
- /home/sysop/odoo18/customaddons/${CUSTOMADDONS_DIR}/odoo.conf:/etc/odoo.conf
- /home/sysop/odoo18/customaddons/${CUSTOMADDONS_DIR}/odoo-dev.conf:/etc/odoo.conf
- odoo_18_filestore:/root/.local/share/Odoo/
depends_on:
- db
@ -32,8 +32,6 @@ services:
nginx:
image: nginx:1.27.0-alpine3.19-slim
restart: unless-stopped
env_file:
.env
ports:
- 3080:80
volumes:
@ -42,7 +40,7 @@ services:
- odoo
volumes:
postgres_17_data:
name: postgres_17_data
postgres_17_odoo_data:
name: postgres_17_odoo_data
odoo_18_filestore:
name: odoo_18_filestore

40
odoo-dev.conf Normal file
View File

@ -0,0 +1,40 @@
[options]
admin_passwd = $pbkdf2-sha512$25000$633v3ZuT0novhVAqhdDamw$fKiY4ilP5EF8xLv66kljQ1WWppTQgraLUMDANMT3rlx01C6luc27z3PPj.wbgTPy8VUvL6LPjLGSHdlqlHXn6A
;admin_passwd = admin
;addons_path = /mnt/extra-addons
;data_dir = /var/lib/odoo
;csv_internal_sep = ,
;db_maxconn = 64
;db_name = False
;db_template = template1
;dbfilter = .*
;debug_mode = False
;email_from = False
limit_memory_hard = 12684354560
limit_memory_soft = 12147483648
;limit_request = 8192
limit_time_cpu = 60000
limit_time_real = 120000
list_db = True
proxy_mode = True
http_enable = True
;log_db = False
;log_handler = [':INFO']
;log_level = info
;logfile = None
;longpolling_port = 8072
;max_cron_threads = 2
;osv_memory_age_limit = 1.0
;osv_memory_count_limit = False
;smtp_password = False
;smtp_port = 25
;smtp_server = localhost
;smtp_ssl = False
;smtp_user = False
;workers = 0
;xmlrpc = True
;xmlrpc_interface =
;xmlrpc_port = 8069
;xmlrpcs = True
;xmlrpcs_interface =
;xmlrpcs_port = 8071