4 Commits

Author SHA1 Message Date
nietzshn 7e4b8814bd Merge pull request 'feat: add initial multi-environment CI/CD pipeline POC' (#3) from staging into main
CI Pipeline / HTML Lint (push) Successful in 7s
Deploy Production / Build and Push (push) Successful in 14s
CI Pipeline / Build Docker Image (push) Successful in 58s
Deploy Production / Deploy to Production (push) Successful in 9s
CI Pipeline / Security Scan (push) Successful in 10s
Deploy Production / Release Notes (push) Successful in 1s
Reviewed-on: #3
2026-06-02 22:31:08 -06:00
nietzshn 4c972e1be2 Merge pull request 'chore: update Gitea workflow summaries to use GITHUB_STEP_SUMMARY, switch to env variables, and add QA notification step' (#2) from dev into staging
CI Pipeline / HTML Lint (push) Successful in 7s
Deploy Staging / Build and Push (push) Successful in 14s
CI Pipeline / Build Docker Image (push) Successful in 57s
CI Pipeline / Security Scan (push) Successful in 10s
Deploy Staging / Notification (push) Successful in 1s
Deploy Staging / Deploy to Staging (push) Successful in 9s
CI Pipeline / HTML Lint (pull_request) Successful in 9s
CI Pipeline / Build Docker Image (pull_request) Successful in 57s
CI Pipeline / Security Scan (pull_request) Successful in 10s
Reviewed-on: #2
2026-06-02 22:25:33 -06:00
nietzshn 08c40162b0 Merge branch 'staging' into dev
CI Pipeline / HTML Lint (push) Successful in 7s
Deploy QA / Build and Push (push) Successful in 14s
CI Pipeline / HTML Lint (pull_request) Successful in 7s
CI Pipeline / Build Docker Image (push) Successful in 58s
Deploy QA / Deploy to QA (push) Successful in 8s
CI Pipeline / Build Docker Image (pull_request) Successful in 56s
Deploy QA / Notification (push) Successful in 1s
CI Pipeline / Security Scan (pull_request) Successful in 11s
CI Pipeline / Security Scan (push) Successful in 11s
2026-06-02 22:25:24 -06:00
nietzshn f48307410e chore: update Gitea workflow summaries to use GITHUB_STEP_SUMMARY, switch to env variables, and add QA notification step
CI Pipeline / HTML Lint (push) Successful in 7s
Deploy QA / Build and Push (push) Successful in 14s
CI Pipeline / Build Docker Image (push) Successful in 58s
Deploy QA / Deploy to QA (push) Successful in 9s
CI Pipeline / Security Scan (push) Successful in 11s
Deploy QA / Notification (push) Successful in 1s
CI Pipeline / HTML Lint (pull_request) Successful in 9s
CI Pipeline / Build Docker Image (pull_request) Successful in 57s
CI Pipeline / Security Scan (pull_request) Successful in 12s
2026-06-02 22:09:30 -06:00
3 changed files with 24 additions and 7 deletions
+5 -5
View File
@@ -160,27 +160,27 @@ jobs:
set -euo pipefail
COMMITS_SINCE_LAST=$(git log --oneline --no-decorate ${{ gitea.sha }} -n 20 2>/dev/null || echo "No commit history available")
cat << 'SUMMARY' >> $GITEA_HOME/workflow/summary
cat << 'SUMMARY' >> $GITHUB_STEP_SUMMARY
## Production Deployment Successful :rocket:
**Version:** ${{ needs.build-and-push.outputs.app_version }}
**Commit:** ${{ gitea.sha }}
**Image:** ${{ vars.REGISTRY_URL }}/${{ vars.IMAGE_NAME }}:production-latest
**Image:** ${{ env.REGISTRY_URL }}/${{ env.IMAGE_NAME }}:production-latest
**URL:** https://practicas.prod.kubistudio.cloud
### Recent Commits
```
SUMMARY
git log --oneline --no-decorate -n 20 ${{ gitea.sha }} 2>/dev/null >> $GITEA_HOME/workflow/summary || true
git log --oneline --no-decorate -n 20 ${{ gitea.sha }} 2>/dev/null >> $GITHUB_STEP_SUMMARY || true
cat << 'SUMMARY' >> $GITEA_HOME/workflow/summary
cat << 'SUMMARY' >> $GITHUB_STEP_SUMMARY
```
### Rollback
If needed, rollback with:
```bash
docker stop cicd-prod && docker rm cicd-prod
docker run -d --name cicd-prod --restart unless-stopped -p 8083:80 \${{ vars.REGISTRY_URL }}/\${{ vars.IMAGE_NAME }}:stable
docker run -d --name cicd-prod --restart unless-stopped -p 8083:80 \${{ env.REGISTRY_URL }}/\${{ env.IMAGE_NAME }}:stable
```
SUMMARY
+17
View File
@@ -119,3 +119,20 @@ jobs:
echo "::error::QA health check failed"
exit 1
EOF
notify:
name: Notification
runs-on: ubuntu-latest
needs: [build-and-push, deploy]
if: always()
steps:
- name: Write summary
run: |
cat << 'SUMMARY' >> $GITHUB_STEP_SUMMARY
## QA Deployment ${{ needs.deploy.result }}
**Branch:** dev
**Commit:** ${{ gitea.sha }}
**Image:** ${{ env.REGISTRY_URL }}/${{ env.IMAGE_NAME }}:qa-latest
**URL:** https://practicas.qa.kubistudio.cloud
SUMMARY
+2 -2
View File
@@ -136,11 +136,11 @@ jobs:
steps:
- name: Write summary
run: |
cat << 'SUMMARY' >> $GITEA_HOME/workflow/summary
cat << 'SUMMARY' >> $GITHUB_STEP_SUMMARY
## Staging Deployment ${{ needs.deploy.result }}
**Branch:** staging
**Commit:** ${{ gitea.sha }}
**Image:** ${{ vars.REGISTRY_URL }}/${{ vars.IMAGE_NAME }}:staging-latest
**Image:** ${{ env.REGISTRY_URL }}/${{ env.IMAGE_NAME }}:staging-latest
**URL:** https://practicas.staging.kubistudio.cloud
SUMMARY