Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Artificial Intelligence
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Property Management
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Make an automatic rebuild from in OdooSH

Subscriure's

Get notified when there's activity on this post

This question has been flagged
developmentconfigurationsetupsystem
2 Respostes
1174 Vistes
Avatar
Ramón Reyna García

HI!, 


Is there a command or a way to do a rebuild in OdooSH of staging automatically? I want to have 3 staging branches but rebuilding automatically every week, i was thinking in a cron job that executes a command to do this, its possible or how can i do this?


Thanks!!

0
Avatar
Descartar
Avatar
Vraja Technologies
Best Answer

Use this GitHub Actions workflow to trigger a weekly rebuild by pushing an empty commit to each staging branch.

Create this file in your repo:

/.github/workflows/weekly-staging-rebuild.yml

name: Weekly Odoo.sh Staging Rebuild

on:
schedule:
# Runs every Sunday at 02:00 UTC
- cron: '0 2 * * 0'
workflow_dispatch:

jobs:
rebuild-staging:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
branch:
- staging1
- staging2
- staging3

steps:
- name: Checkout target branch
uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
fetch-depth: 0
token: ${{ secrets.GH_PAT }}

- name: Configure Git
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"

- name: Create empty commit
run: |
git commit --allow-empty -m "Weekly rebuild trigger for ${{ matrix.branch }}"

- name: Push changes
run: |
git push origin ${{ matrix.branch }}

What this does:

  • runs every week
  • checks out each staging branch
  • creates an empty commit
  • pushes it
  • Odoo.sh detects the new push and starts a fresh build for that branch

  • Important Notes:
  • GH_PAT should be a GitHub token saved in Repository Settings → Secrets and variables → Actions
  • the token must have permission to push to the repository
  • branch names must match your real Odoo.sh staging branch names

    For More Detail Please Contact us on : https://www.vrajatechnologies.com

  • Thanks
0
Avatar
Descartar
Avatar
Zehntech Technologies Inc.
Best Answer

Hello,  

Odoo.sh does not provide a native command or built-in cron mechanism to automatically rebuild staging branches on a schedule.

However, this can be achieved using an external approach, such as:

  • Leveraging the Odoo.sh API to trigger rebuilds
  • Setting up a scheduled job (e.g., via CI/CD tools like GitHub Actions, GitLab CI, or a server cron) that calls the rebuild process

This way, you can automate the weekly refresh of your staging branches as needed.

Hope this works for you! If you need any help implementing this or want a more optimized approach, feel free to reach out for further discussion

Regards,

Zehntech Technologies Inc.

-1
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
Customizing odoo enterprise
development configuration setup system
Avatar
0
de febr. 25
2946
Error while importing module.
development configuration setup system debug
Avatar
Avatar
Avatar
2
d’oct. 25
4821
[18.0] set res config settings using code
development configuration setup stock system
Avatar
Avatar
Avatar
2
de jul. 25
7482
V16-Managing data in property field
development configuration setup system function
Avatar
1
d’abr. 25
2414
Moving a Fresh Odoo Online (SaaS 19.2) to Odoo.sh (Stable 19.0) Solved
development setup system
Avatar
Avatar
2
d’abr. 26
1201
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk Slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now