From c4ec43cb76beadeac03fb1f224e9c241f532ffe5 Mon Sep 17 00:00:00 2001 From: Max Mayfield Date: Mon, 2 Mar 2026 13:48:10 +0000 Subject: [PATCH] Add CI build-push jobs targeting reg.dd0c.net with docker login + deploy --- .gitea/workflows/ci-p2-drift.yml | 16 ++++++++++++++++ .gitea/workflows/ci-p3-alert.yml | 16 ++++++++++++++++ .gitea/workflows/ci-p4-portal.yml | 16 ++++++++++++++++ .gitea/workflows/ci-p5-cost.yml | 16 ++++++++++++++++ .gitea/workflows/ci-p6-run.yml | 16 ++++++++++++++++ .../02-iac-drift-detection/saas/.build-trigger | 2 +- products/03-alert-intelligence/.build-trigger | 2 +- products/04-lightweight-idp/.build-trigger | 2 +- products/05-aws-cost-anomaly/.build-trigger | 2 +- .../06-runbook-automation/saas/.build-trigger | 2 +- 10 files changed, 85 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci-p2-drift.yml b/.gitea/workflows/ci-p2-drift.yml index b6524fb..c8bc261 100644 --- a/.gitea/workflows/ci-p2-drift.yml +++ b/.gitea/workflows/ci-p2-drift.yml @@ -50,3 +50,19 @@ jobs: run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && npm test + + build-push: + runs-on: ubuntu-24.04 + needs: test + if: github.ref == 'refs/heads/main' + steps: + - name: Checkout + run: git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true + - name: Login and push + run: | + echo "secret" | docker login reg.dd0c.net --username dd0c --password-stdin + cd $GITHUB_WORKSPACE/products + docker build -t reg.dd0c.net/dd0c-drift:latest ./02-iac-drift-detection/saas + docker push reg.dd0c.net/dd0c-drift:latest + - name: Deploy + run: cd $GITHUB_WORKSPACE/products && docker compose pull drift && docker compose up -d drift diff --git a/.gitea/workflows/ci-p3-alert.yml b/.gitea/workflows/ci-p3-alert.yml index d4af3b4..1a07725 100644 --- a/.gitea/workflows/ci-p3-alert.yml +++ b/.gitea/workflows/ci-p3-alert.yml @@ -25,3 +25,19 @@ jobs: run: cd $GITHUB_WORKSPACE/products/03-alert-intelligence && npm test + + build-push: + runs-on: ubuntu-24.04 + needs: test + if: github.ref == 'refs/heads/main' + steps: + - name: Checkout + run: git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true + - name: Login and push + run: | + echo "secret" | docker login reg.dd0c.net --username dd0c --password-stdin + cd $GITHUB_WORKSPACE/products + docker build -t reg.dd0c.net/dd0c-alert:latest ./03-alert-intelligence + docker push reg.dd0c.net/dd0c-alert:latest + - name: Deploy + run: cd $GITHUB_WORKSPACE/products && docker compose pull alert && docker compose up -d alert diff --git a/.gitea/workflows/ci-p4-portal.yml b/.gitea/workflows/ci-p4-portal.yml index 22f7e17..272e7dc 100644 --- a/.gitea/workflows/ci-p4-portal.yml +++ b/.gitea/workflows/ci-p4-portal.yml @@ -25,3 +25,19 @@ jobs: run: cd $GITHUB_WORKSPACE/products/04-lightweight-idp && npm test + + build-push: + runs-on: ubuntu-24.04 + needs: test + if: github.ref == 'refs/heads/main' + steps: + - name: Checkout + run: git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true + - name: Login and push + run: | + echo "secret" | docker login reg.dd0c.net --username dd0c --password-stdin + cd $GITHUB_WORKSPACE/products + docker build -t reg.dd0c.net/dd0c-portal:latest ./04-lightweight-idp + docker push reg.dd0c.net/dd0c-portal:latest + - name: Deploy + run: cd $GITHUB_WORKSPACE/products && docker compose pull portal && docker compose up -d portal diff --git a/.gitea/workflows/ci-p5-cost.yml b/.gitea/workflows/ci-p5-cost.yml index 5391292..bc2af8d 100644 --- a/.gitea/workflows/ci-p5-cost.yml +++ b/.gitea/workflows/ci-p5-cost.yml @@ -25,3 +25,19 @@ jobs: run: cd $GITHUB_WORKSPACE/products/05-aws-cost-anomaly && npm test + + build-push: + runs-on: ubuntu-24.04 + needs: test + if: github.ref == 'refs/heads/main' + steps: + - name: Checkout + run: git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true + - name: Login and push + run: | + echo "secret" | docker login reg.dd0c.net --username dd0c --password-stdin + cd $GITHUB_WORKSPACE/products + docker build -t reg.dd0c.net/dd0c-cost:latest ./05-aws-cost-anomaly + docker push reg.dd0c.net/dd0c-cost:latest + - name: Deploy + run: cd $GITHUB_WORKSPACE/products && docker compose pull cost && docker compose up -d cost diff --git a/.gitea/workflows/ci-p6-run.yml b/.gitea/workflows/ci-p6-run.yml index 77d40a9..4bd4ca8 100644 --- a/.gitea/workflows/ci-p6-run.yml +++ b/.gitea/workflows/ci-p6-run.yml @@ -25,3 +25,19 @@ jobs: run: cd $GITHUB_WORKSPACE/products/06-runbook-automation/saas && npm test + + build-push: + runs-on: ubuntu-24.04 + needs: test + if: github.ref == 'refs/heads/main' + steps: + - name: Checkout + run: git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true + - name: Login and push + run: | + echo "secret" | docker login reg.dd0c.net --username dd0c --password-stdin + cd $GITHUB_WORKSPACE/products + docker build -t reg.dd0c.net/dd0c-run:latest ./06-runbook-automation/saas + docker push reg.dd0c.net/dd0c-run:latest + - name: Deploy + run: cd $GITHUB_WORKSPACE/products && docker compose pull run && docker compose up -d run diff --git a/products/02-iac-drift-detection/saas/.build-trigger b/products/02-iac-drift-detection/saas/.build-trigger index 608e34c..a6efc1a 100644 --- a/products/02-iac-drift-detection/saas/.build-trigger +++ b/products/02-iac-drift-detection/saas/.build-trigger @@ -1 +1 @@ -# Trigger CI build 20260302053204 +# Trigger CI 20260302134810 diff --git a/products/03-alert-intelligence/.build-trigger b/products/03-alert-intelligence/.build-trigger index 608e34c..a6efc1a 100644 --- a/products/03-alert-intelligence/.build-trigger +++ b/products/03-alert-intelligence/.build-trigger @@ -1 +1 @@ -# Trigger CI build 20260302053204 +# Trigger CI 20260302134810 diff --git a/products/04-lightweight-idp/.build-trigger b/products/04-lightweight-idp/.build-trigger index 608e34c..a6efc1a 100644 --- a/products/04-lightweight-idp/.build-trigger +++ b/products/04-lightweight-idp/.build-trigger @@ -1 +1 @@ -# Trigger CI build 20260302053204 +# Trigger CI 20260302134810 diff --git a/products/05-aws-cost-anomaly/.build-trigger b/products/05-aws-cost-anomaly/.build-trigger index 608e34c..a6efc1a 100644 --- a/products/05-aws-cost-anomaly/.build-trigger +++ b/products/05-aws-cost-anomaly/.build-trigger @@ -1 +1 @@ -# Trigger CI build 20260302053204 +# Trigger CI 20260302134810 diff --git a/products/06-runbook-automation/saas/.build-trigger b/products/06-runbook-automation/saas/.build-trigger index 608e34c..a6efc1a 100644 --- a/products/06-runbook-automation/saas/.build-trigger +++ b/products/06-runbook-automation/saas/.build-trigger @@ -1 +1 @@ -# Trigger CI build 20260302053204 +# Trigger CI 20260302134810