ci: daily upstream merge with PR/issue, tag-based image publishing
CI - Validacao Go / Validar Codigo e Testes (push) Successful in 3m33s
Docker - Build e Publicacao / Build, Scan e Publicacao (push) Successful in 3m48s

- scripts/upstream-sync.sh + upstream-sync-check.yml: fast-forward upstream-sync,
  merge upstream into maintenance/sync-upstream-<sha> from maintained-develop,
  build/vet/test, open PR (or Issue on conflict), warn on newer whatsmeow.
  Optional AUTO_MERGE_UPSTREAM repo variable; maintained-stable never touched.
- docker-build.yml: publish git.jf.eng.br/jfeng/evogo:<version> and
  <version>-<sha7> on tag v*, startup smoke test, non-blocking Trivy scan,
  :latest only on explicit promote_latest.
- CHANGELOG and maintenance docs updated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
jfengandClaude Opus 5.5 committed 2026-11-09 13:12:32 -03:00
1 parent e02441fc4e
commit 0379082181
6 files changed
+417 -63

No files matched your search

+37 -13
View File
@@ -1,29 +1,53 @@
name: Monitoramento Diario do Upstream
name: Sincronizacao Diaria com o Upstream
# Incorpora o upstream oficial (evolution-foundation/evolution-go) sem perder as
# correcoes EvoGO: o merge e feito numa branch maintenance/sync-upstream-<sha>
# criada a partir de maintained-develop, testado e enviado como PR.
# Conflitos viram Issue. maintained-stable nunca e tocada.
# Ver scripts/upstream-sync.sh e docs/maintenance/UPSTREAM_SYNC.md.
on:
schedule:
# Executa diariamente as 04:00 UTC (01:00 BRT)
# Diariamente as 04:00 UTC (01:00 BRT)
- cron: '0 4 * * *'
workflow_dispatch:
concurrency:
group: upstream-sync
cancel-in-progress: false
jobs:
check_upstream:
name: Verificar Atualizacoes do Upstream e Whatsmeow
sync:
name: Incorporar upstream e verificar whatsmeow
runs-on: ubuntu-latest
steps:
- name: Checkout do Repositorio
uses: actions/checkout@v4
with:
ref: maintained-develop
fetch-depth: 0
token: ${{ secrets.GITEA_TOKEN }}
- name: Executar Script de Verificacao
id: check
run: |
bash scripts/check-upstream-updates.sh
- name: Salvar Relatorio como Artefato
uses: actions/upload-artifact@v4
- name: Configurar Go
uses: actions/setup-go@v5
with:
name: relatorio-upstream-${{ github.run_id }}
path: relatorio_atualizacao_*.md
go-version-file: go.mod
- name: Instalar Dependencias de Sistema
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq --no-install-recommends libjpeg-dev libwebp-dev
- name: Sincronizar com o upstream
env:
GITEA_URL: ${{ github.server_url }}
REPO: ${{ github.repository }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
# Defina a variavel de repositorio AUTO_MERGE_UPSTREAM=true para mesclar
# automaticamente em maintained-develop quando build e testes passarem.
AUTO_MERGE: ${{ vars.AUTO_MERGE_UPSTREAM || 'false' }}
run: |
git config user.name "EvoGO Upstream Bot"
git config user.email "[email protected]"
bash scripts/upstream-sync.sh