Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Kunstig intelligens
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-forretningsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp
Du skal være registreret for at interagere med fællesskabet.
Alle bidrag Personer Emblemer
Tags (Vis alle)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
Alle bidrag Personer Emblemer
Tags (Vis alle)
odoo accounting v14 pos v15
Om dette forum
Hjælp

Make an automatic rebuild from in OdooSH

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
developmentconfigurationsetupsystem
2 Besvarelser
1183 Visninger
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
Kassér
Avatar
Vraja Technologies
Bedste svar

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
Kassér
Avatar
Zehntech Technologies Inc.
Bedste svar

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
Kassér
Kan du lide at diskutere? Læs ikke bare med, deltag aktivt i debatten!

Opret en konto i dag for at få glæde af eksklusive funktioner, og bliv en del af vores skønne fællesskab!

Tilmeld dig
Relaterede indlæg Besvarelser Visninger Aktivitet
Customizing odoo enterprise
development configuration setup system
Avatar
0
feb. 25
2958
Error while importing module.
development configuration setup system debug
Avatar
Avatar
Avatar
2
okt. 25
4836
[18.0] set res config settings using code
development configuration setup stock system
Avatar
Avatar
Avatar
2
jul. 25
7504
V16-Managing data in property field
development configuration setup system function
Avatar
1
apr. 25
2416
Moving a Fresh Odoo Online (SaaS 19.2) to Odoo.sh (Stable 19.0) Løst
development setup system
Avatar
Avatar
2
apr. 26
1211
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة 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 er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

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