ci: reuse published images when the image sources are unchanged

Release hashes services/, migrations/ and config/; when images for that hash
already exist it skips CI and the build and only applies the new tags. Tagging
a release no longer recompiles the webmail.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Sonnet 5.5 committed 2026-10-30 12:20:51 -03:00
1 parent 2db5915061
commit a3e071bb03
4 files changed
+80 -15

No files matched your search

+3 -1
View File
@@ -87,7 +87,9 @@ Gitea. O que ainda falta está no README, em
`git.lucasrguerra.dev.br/lucasrguerra/lambdamail/<serviço>`, e a tag `v*` cria
uma release com notas. Veja [docs/RELEASING.md](docs/RELEASING.md).
- O CI guarda em cache o npm, os módulos Go, o Postgres embutido, o banco do
Trivy e as camadas das imagens.
Trivy e as camadas das imagens. O Release reconhece imagens que já publicou
para os mesmos fontes (tag `inputs-<hash>`), então uma mudança de documentação
ou uma tag de versão nunca as reconstrói.
- Um único `.env.example` para desenvolvimento e produção, e o
`scripts/init-env.sh` para criar o `.env` com segredos aleatórios
(`make env`). Ele substitui o `.env.production.example`.