Compare commits

..

4 Commits

Author SHA1 Message Date
devops 2ab198baa7 chore: bump version to v0.2.1 [skip ci] 2026-06-09 18:31:23 +00:00
devops 3e0db0dfd1 fix: deploy from checkout dir instead of /workspace/nexus
CI - Build & Test / Backend (.NET) (push) Successful in 29s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 16s
CI - Build & Test / Security Check (push) Successful in 3s
The runner job container does not have /workspace/nexus mounted.
Run everything from the checkout directory which has .git and compose.yaml.
- Removed rsync sync step (not needed)
- Version bump uses checkout dir with full git history
- Docker compose runs from checkout dir
- Added fetch-depth:0 and fetch-tags for version tagging
2026-06-09 20:30:31 +02:00
devops 247dddc2fc fix: install rsync before deploy sync step
CI - Build & Test / Backend (.NET) (push) Successful in 24s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 16s
CI - Build & Test / Security Check (push) Successful in 2s
The Gitea runner ubuntu-latest image lacks rsync, causing
the Sync-to-deploy-path step to fail with exit code 127.
Added apt-get install rsync before the sync step.
2026-06-09 20:27:08 +02:00
devops c01c6c990e ci: CD auto-deploy via workflow_run trigger
CI - Build & Test / Backend (.NET) (push) Successful in 27s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 16s
CI - Build & Test / Security Check (push) Successful in 3s
- deploy.yaml now triggers automatically after successful CI completion
- Adds workflow_run event listener for 'CI - Build & Test'
- Guards deploy to only run when CI conclusion == success
- Preserves manual workflow_dispatch for targeted deploys
- Adds CI/CD note to README
2026-06-09 20:25:32 +02:00
3 changed files with 18 additions and 33 deletions
+15 -32
View File
@@ -2,6 +2,10 @@ name: Deploy to Production
run-name: 🚀 Deploy ${{ inputs.bump_version || 'patch' }} by @${{ gitea.actor }} run-name: 🚀 Deploy ${{ inputs.bump_version || 'patch' }} by @${{ gitea.actor }}
on: on:
workflow_run:
workflows: ["CI - Build & Test"]
types: [completed]
branches: [main]
workflow_dispatch: workflow_dispatch:
inputs: inputs:
bump_version: bump_version:
@@ -27,57 +31,37 @@ on:
jobs: jobs:
deploy: deploy:
name: Deploy Nexus name: Deploy Nexus
runs-on: deploy # only on runners with 'deploy' label runs-on: deploy
if: ${{ gitea.event_name != 'workflow_run' || gitea.event.workflow_run.conclusion == 'success' }}
steps: steps:
- name: Checkout latest code - name: Checkout latest code
uses: actions/checkout@v3 uses: actions/checkout@v4
with:
- name: Sync to deploy path fetch-depth: 0
run: | fetch-tags: true
rsync -a --delete \
--exclude='.git' \
--exclude='.env' \
--exclude='backend-tests/bin' \
--exclude='backend-tests/obj' \
--exclude='backend/bin' \
--exclude='backend/obj' \
--exclude='frontend/dist' \
--exclude='frontend/node_modules' \
${{ gitea.workspace }}/ /workspace/nexus/
- name: Version Bump - name: Version Bump
working-directory: /workspace/nexus
run: | run: |
# Read current version
CURRENT_VERSION=$(cat VERSION) CURRENT_VERSION=$(cat VERSION)
echo "📦 Current version: $CURRENT_VERSION" echo "📦 Current version: $CURRENT_VERSION"
# Parse major.minor.patch
MAJOR=$(echo $CURRENT_VERSION | cut -d. -f1) MAJOR=$(echo $CURRENT_VERSION | cut -d. -f1)
MINOR=$(echo $CURRENT_VERSION | cut -d. -f2) MINOR=$(echo $CURRENT_VERSION | cut -d. -f2)
PATCH=$(echo $CURRENT_VERSION | cut -d. -f3) PATCH=$(echo $CURRENT_VERSION | cut -d. -f3)
# Bump according to input
case "${{ inputs.bump_version }}" in case "${{ inputs.bump_version }}" in
major) major)
MAJOR=$((MAJOR + 1)) MAJOR=$((MAJOR + 1)); MINOR=0; PATCH=0 ;;
MINOR=0
PATCH=0
;;
minor) minor)
MINOR=$((MINOR + 1)) MINOR=$((MINOR + 1)); PATCH=0 ;;
PATCH=0
;;
patch|*) patch|*)
PATCH=$((PATCH + 1)) PATCH=$((PATCH + 1)) ;;
;;
esac esac
NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}" NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}"
echo "🏷️ New version: $NEW_VERSION" echo "🏷️ New version: $NEW_VERSION"
echo "$NEW_VERSION" > VERSION echo "$NEW_VERSION" > VERSION
# Commit & push version bump
git config user.email "devops@noveria.net" git config user.email "devops@noveria.net"
git config user.name "DevOps" git config user.name "DevOps"
git add VERSION git add VERSION
@@ -90,7 +74,6 @@ jobs:
run: docker buildx create --use 2>/dev/null || true run: docker buildx create --use 2>/dev/null || true
- name: Build & Deploy - name: Build & Deploy
working-directory: /workspace/nexus
run: | run: |
BUILD_ARGS="" BUILD_ARGS=""
if [ "${{ inputs.no_cache }}" = "true" ]; then if [ "${{ inputs.no_cache }}" = "true" ]; then
@@ -111,9 +94,9 @@ jobs:
run: | run: |
sleep 5 sleep 5
echo "🏥 Health check..." echo "🏥 Health check..."
curl -sf --max-time 10 https://nexus.noveria.net/health || echo "⚠️ Health check failed" curl -sf --max-time 30 --retry 3 --retry-delay 5 https://nexus.noveria.net/health || echo "⚠️ Health check failed (may need more time)"
echo "" echo ""
docker compose -f /workspace/nexus/compose.yaml ps docker compose ps
- name: Verify (smoke test) - name: Verify (smoke test)
run: | run: |
+2
View File
@@ -3,6 +3,8 @@
Nexus is the operations platform for the Noveria ecosystem. OpenClaw is an Nexus is the operations platform for the Noveria ecosystem. OpenClaw is an
adapter-backed agent runtime, not a dependency of the frontend or domain model. adapter-backed agent runtime, not a dependency of the frontend or domain model.
> CI/CD auto-deploy enabled — every push to main triggers build → test → deploy.
## Current foundation ## Current foundation
- Vue 3, TypeScript, Pinia, Vue Router and Tailwind CSS - Vue 3, TypeScript, Pinia, Vue Router and Tailwind CSS
+1 -1
View File
@@ -1 +1 @@
0.2.0 0.2.1