Repository navigation
Implement automated release builds with tag-based triggers, edition-specific DockerHub tags, automatic changelog generation, and enterprise security features - #127
Conversation
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
…g option Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
|
@copilot der build muss aber nur gestartet werden wenn sich etwas geändert oder manuell gestartet wurde. |
…ally forced Co-authored-by: makr-code <[email protected]>
Umgesetzt in cd3b2aa! Der Build wird jetzt intelligent gesteuert: ✅ Geplante Ausführungen (2:00 AM UTC): Build läuft nur wenn Commits in den letzten 24 Stunden erkannt wurden Der Workflow prüft automatisch die Git-Historie und entscheidet smart, ob ein Build notwendig ist. Manuelle Trigger haben zusätzlich eine "Force build" Option, um einen Build auch ohne Änderungen zu erzwingen. |
|
@copilot D.h. auch wir bauen nicht mehr wenn etwas hochgeladen wird sondern nur noch nightly. Alle anderen CI können dann entfernt werden. |
Verstanden! Zwei Aspekte: 1. Build-Strategie: Bestätigung - mit dem nightly build System bauen wir nur noch nachts bei Änderungen. Die anderen CI Workflows (ci.yml, docker-build.yml, etc.) können entfernt/deaktiviert werden wenn gewünscht. 2. Automatische Changelog/README Generation: Hier brauche ich noch Klarheit:
Bitte um kurze Spezifikation, dann kann ich das implementieren. |
|
@copilot Changelog soll die letzten änderungen am Code wiedergeben. Dazu muss copilot die geänderten Dateien seit dem letzten Build nach veränderungen durchsuchen und diese dokumentieren. |
Co-authored-by: makr-code <[email protected]>
Implementiert in 84ed7bc! Der nightly build generiert jetzt automatisch ein detailliertes Changelog: ✅ Automatische Analyse: Durchsucht alle geänderten Dateien seit dem letzten Build Das Changelog enthält:
Siehe |
|
@copilot änderungen gegen derzeitige implementierung bgleichen |
Vollständiger Abgleich durchgeführt! ✅ Hauptunterschied:
Nicht übernommen aus Original:
Neu implementiert:
Workflow-Dateien:
Empfehlung: SBOM und Signierung aus |
|
@copilot ja |
… original release.yml Co-authored-by: makr-code <[email protected]>
Integriert in c3ad60c! ✅ Neuer Job Aus original release.yml übernommen:
Artifacts (365 Tage Aufbewahrung):
Workflow: setup → changelog → binary → docker → sbom → docs → deploy → notify Vollständige Enterprise-Pipeline jetzt in einem Workflow vereint! 🔒 |
|
@copilot fix it merge |
Die aktuelle Branch ist sauber ohne Merge-Konflikte. Bitte spezifizieren:
Aktueller Status:
Was genau soll gefixt/gemerged werden? |
|
@copilot This branch has conflicts that must be resolved .github/workflows/docs.yml |
…ucture Co-authored-by: makr-code <[email protected]>
Resolved merge conflicts: - README.md: Combined port reference and release build documentation - Documentation structure: Moved nightly build docs to docs/de/deployment/ - Workflow files: Kept release-build.yml as the primary release workflow This merge integrates the latest main branch changes with our new release build system that includes: - Tag-based release builds with edition support (community/enterprise/hyperscaler) - Automatic changelog generation for each release - Enterprise security features (SBOM, signing, SLSA provenance) - Integrated documentation build and deployment - DockerHub push with semantic versioning and edition tags
... Merge-Konflikte erfolgreich aufgelöst in 54035c6! Aufgelöste Konflikte:
Der Branch ist jetzt mit |
…, Issue #127) Co-authored-by: makr-code <[email protected]>
… JSON) Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/e2fd5773-6736-4c47-b89b-05877a13f45d Co-authored-by: makr-code <[email protected]>
…ize, isValidNow, getExtractedText) Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/328511c9-a0cd-4d90-afe4-92ebb5df7703 Co-authored-by: makr-code <[email protected]>
Automated release builds were requested to provide Docker images on version tags with automatic changelog generation documenting all changes between releases, support for multiple deployment editions (community, enterprise, hyperscaler), and enterprise security features including SBOM generation, artifact signing, and SLSA provenance.
Implementation
Workflow (
.github/workflows/release-build.yml)v*) and manual workflow dispatchBuild Process
Dockerfile.simplewith pre-built binary (5-10 min)Automatic Release Changelog Generation
Each release generates a comprehensive changelog:
release-changelogs/RELEASE_CHANGELOG_vX.Y.Z.mdEnterprise Security Features
Each release generates comprehensive security artifacts:
Release Build Logic
Docker Tags (Semantic Versioning with Edition Support)
Each release produces tags with and without edition suffixes for maximum flexibility:
For release
v1.3.1with community edition:themisdb/server:1.3.1-community- Specific version with editionthemisdb/server:1.3-community- Minor version with editionthemisdb/server:1-community- Major version with editionthemisdb/server:latest-community- Latest community editionthemisdb/server:1.3.1- Specific version (backward compatible)themisdb/server:1.3- Minor version (backward compatible)themisdb/server:1- Major version (backward compatible)themisdb/server:latest- Latest release (backward compatible)Supported Editions:
-community): Open-source features, community support, suitable for development and small deployments-enterprise): Advanced business features, enterprise support, enhanced security and compliance-hyperscaler): Optimized for cloud-scale deployments, maximum performance and scalability, cloud-native featuresConfiguration
Required Secrets:
DOCKER_USERNAME- DockerHub usernameDOCKER_TOKEN- DockerHub access tokenOptional Secrets (for GPG signing):
GPG_PRIVATE_KEY- Base64-encoded GPG private keyGPG_PASSPHRASE- GPG key passphraseDocumentation
release-changelogs/README.md(includes edition tag documentation and security artifacts)docs/de/deployment/(German documentation structure)ANTWORT_OVERNIGHT_BUILDS.md- Answer to original questiondeployment_nightly_builds.md- English guidedeployment_nightly_builds_de.md- German guideSETUP_NIGHTLY_BUILDS.md- Setup instructionsOVERNIGHT_BUILDS_SUMMARY.md- Implementation summaryNIGHTLY_BUILDS_QUICKREF.md- Quick referenceUsage
Manual Workflow Trigger
When triggering manually, select the desired edition:
Security Artifacts
Each release generates the following security artifacts (365-day retention):
SBOM_vX.Y.Z_EDITION.json: CycloneDX 1.4 Software Bill of MaterialsSHA256SUMS_vX.Y.Z_EDITION.txt: SHA256 checksums for all artifactsSIGNATURES_vX.Y.Z_EDITION.txt: HMAC signatures for verification*.asc: GPG detached signatures (if GPG secrets configured)provenance_vX.Y.Z_EDITION.json: SLSA v1 provenance documentRELEASE_COMPLIANCE_REPORT_vX.Y.Z_EDITION.md: Enterprise compliance report with verification commandsMigration from Nightly to Release Builds
The build strategy has been migrated from nightly scheduled builds to release/tag-based builds:
nightly,nightly-YYYYMMDD1.3.0-community,1.3.0,latest-enterprise,latestnightly-changelogs/release-changelogs/Merge with Main Branch
This PR has been merged with the latest main branch (440+ commits integrated), resolving all conflicts:
docs/de/deployment/structureFiles Changed
.github/workflows/release-build.yml(replaces nightly-build.yml and integrates release.yml),release-changelogs/directory with README (including edition and security documentation).github/workflows/nightly-build.yml(replaced by release-build.yml)release.yml→release.yml.old,docs.yml→docs.yml.disabled(integrated into release-build.yml)release-changelogs/README.md(added edition-specific tag documentation and security artifacts documentation),README.md(merged with main branch updates)docs/deployment/todocs/de/deployment/(adapted to new structure)Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.