12 Commits

Author SHA1 Message Date
jcabillot a77e31fd53 Merge pull request 'fix(workflow): standardize to 4-workflow pattern (pr/main/tag/cron)' (#7) from fix/workflow-standard into main
Main Release / hadolint (push) Failing after 8s
Main Release / test (push) Successful in 4m22s
Main Release / build (push) Successful in 4m43s
Main Release / tag (push) Successful in 11s
Tag Release / hadolint (push) Failing after 9s
Tag Release / test (push) Successful in 3m37s
Tag Release / build-push (push) Successful in 4m32s
Reviewed-on: #7
2026-06-13 22:14:58 -04:00
cloudix_mcp_server fa62ba3911 feat(workflow): add cron.yaml — nightly rebuild (test + build-push $TAG-latest)
PR Checks / hadolint (pull_request) Successful in 7s
PR Checks / build-test (pull_request) Successful in 3m43s
2026-06-13 21:17:19 -04:00
cloudix_mcp_server 032563cf7a feat(workflow): add tag.yaml — tag push (test + build-push to DockerHub) 2026-06-13 21:17:13 -04:00
cloudix_mcp_server a0a021dacd feat(workflow): add main.yaml — merge to main (test + build + git tag, no Docker push) 2026-06-13 21:17:05 -04:00
cloudix_mcp_server 0aa8b4011b feat(workflow): add pr.yaml — PR checks (hadolint + build-test) 2026-06-13 21:16:58 -04:00
cloudix_mcp_server 8b2fad603e chore: remove monolithic docker-build.yaml (replaced by 4-workflow pattern) 2026-06-13 21:16:33 -04:00
jcabillot 00b1ba7b8c Merge pull request 'ci: migrate from Jenkins to Gitea Actions' (#6) from fix/refactor-ci-pipelines into main
Docker Build and Push / build (push) Failing after 5m28s
Reviewed-on: #6
2026-06-12 20:18:30 -04:00
cloudix_mcp_server a3583967f1 ci: remove Jenkinsfile — migrated to Gitea Actions
Docker Build and Push / build (pull_request) Successful in 2m31s
2026-06-12 19:50:32 -04:00
jcabillot 1c36f422d6 Merge pull request 'ci: add automatic semver tagging on merge to main' (#5) from feat/semver-tag-action into main
Docker Build and Push / build (push) Failing after 4m35s
Reviewed-on: #5
2026-06-12 13:41:20 -04:00
cloudix_mcp_server 9f1047a5a6 ci: add automatic semver tagging on merge to main
Docker Build and Push / build (pull_request) Successful in 3m2s
2026-06-12 13:19:49 -04:00
jcabillot 1e8d9db843 Merge pull request 'chore(deps): pin dependencies' (#4) from renovate/pin-dependencies into main
Docker Build and Push / build (push) Successful in 4m43s
Reviewed-on: #4
2026-06-09 11:17:53 -04:00
renovate 6645766539 chore(deps): pin dependencies
Docker Build and Push / build (pull_request) Successful in 2m22s
2026-06-09 13:58:07 +00:00
7 changed files with 190 additions and 103 deletions
+57
View File
@@ -0,0 +1,57 @@
name: Nightly Rebuild
on:
schedule:
- cron: '0 0 * * *'
jobs:
hadolint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
with:
dockerfile: Dockerfile
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
fetch-depth: 0
- run: git clone --depth 1 https://github.com/HKUDS/nanobot.git external-nanobot
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- run: docker build -t ci-image:${{ github.sha }} -f external-nanobot/Dockerfile external-nanobot
build-push:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
fetch-depth: 0
- run: git clone --depth 1 https://github.com/HKUDS/nanobot.git external-nanobot
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- id: get-latest-tag
run: |
TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
echo "tag=$TAG" >> $GITHUB_OUTPUT
- id: meta
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6
with:
images: jcabillot/nanobot
tags: |
type=raw,value=${{ steps.get-latest-tag.outputs.tag }}-latest,enable=${{ steps.get-latest-tag.outputs.tag != '' }}
- uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
with:
context: external-nanobot
file: external-nanobot/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
pull: true
-50
View File
@@ -1,50 +0,0 @@
name: Docker Build and Push
on:
pull_request:
branches: [main]
push:
branches: [main]
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Clone HKUDS/nanobot source
run: git clone --depth 1 https://github.com/HKUDS/nanobot.git external-nanobot
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@v6
with:
images: jcabillot/nanobot
tags: |
#type=ref,event=branch
#type=ref,event=pr
#type=sha
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
- name: Build and push
uses: docker/build-push-action@v7
with:
context: external-nanobot
file: external-nanobot/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
pull: true
+54
View File
@@ -0,0 +1,54 @@
name: Main Release
on:
push:
branches: [main]
jobs:
hadolint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
with:
dockerfile: Dockerfile
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
fetch-depth: 0
- run: git clone --depth 1 https://github.com/HKUDS/nanobot.git external-nanobot
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- run: docker build -t ci-image:${{ github.sha }} -f external-nanobot/Dockerfile external-nanobot
build:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
fetch-depth: 0
- run: git clone --depth 1 https://github.com/HKUDS/nanobot.git external-nanobot
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- run: docker build -t jcabillot/nanobot:${{ github.sha }} -f external-nanobot/Dockerfile external-nanobot
tag:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
fetch-depth: 0
- name: Configure git auth
run: |
git remote set-url origin "https://x-access-token:${{ secrets.SA_TOKEN_ACTION_PUSH_TAGS }}@scm.cabillot.eu/perso/nanobot.git"
- uses: anothrNick/github-tag-action@4ed44965e0db8dab2b466a16da04aec3cc312fd8 # v1.75.0
env:
GITHUB_TOKEN: ${{ secrets.SA_TOKEN_ACTION_PUSH_TAGS }}
DEFAULT_BUMP: patch
RELEASE_BRANCHES: main
WITH_V: true
GIT_API_TAGGING: false
+25
View File
@@ -0,0 +1,25 @@
name: PR Checks
on:
pull_request:
branches: [main]
jobs:
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
continue-on-error: true
with:
dockerfile: Dockerfile
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
fetch-depth: 0
- run: git clone --depth 1 https://github.com/HKUDS/nanobot.git external-nanobot
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- run: docker build -t ci-image:${{ github.sha }} -f external-nanobot/Dockerfile external-nanobot
+54
View File
@@ -0,0 +1,54 @@
name: Tag Release
on:
push:
tags: ['*']
jobs:
hadolint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
with:
dockerfile: Dockerfile
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
fetch-depth: 0
- run: git clone --depth 1 https://github.com/HKUDS/nanobot.git external-nanobot
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- run: docker build -t ci-image:${{ github.sha }} -f external-nanobot/Dockerfile external-nanobot
build-push:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
fetch-depth: 0
- run: git clone --depth 1 https://github.com/HKUDS/nanobot.git external-nanobot
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6
with:
images: jcabillot/nanobot
tags: |
type=ref,event=tag
type=ref,event=tag,suffix=-latest
- uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
with:
context: external-nanobot
file: external-nanobot/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
pull: true
Vendored
-39
View File
@@ -1,39 +0,0 @@
pipeline {
environment {
registry = 'https://registry.hub.docker.com'
registryCredential = 'dockerhub_jcabillot'
dockerImage = 'jcabillot/nanobot'
}
agent any
triggers {
cron('@midnight')
}
stages {
stage('Clone repository') {
steps{
checkout scm
}
}
stage('Build image') {
steps{
sh 'git clone "https://github.com/HKUDS/nanobot.git"'
sh 'docker build --force-rm=true --no-cache=true --pull -t ${dockerImage} -f nanobot/Dockerfile nanobot/'
}
}
stage('Deploy Image') {
steps{
script {
withCredentials([usernamePassword(credentialsId: 'dockerhub_jcabillot', usernameVariable: 'DOCKER_USER', passwordVariable: 'DOCKER_PASS')]) {
sh 'docker login --username ${DOCKER_USER} --password ${DOCKER_PASS}'
sh 'docker push ${dockerImage}'
}
}
}
}
}
}
-14
View File
@@ -1,14 +0,0 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"regexManagers": [
{
"description": "Track HKUDS/nanobot upstream releases (Dockerfile cloned at CI time)",
"fileMatch": ["^\\.gitea/workflows/docker-build\\.yaml$"],
"matchStrings": [
"git clone.*https://github.com/HKUDS/nanobot\\.git.*external-nanobot"
],
"depNameTemplate": "HKUDS/nanobot",
"datasourceTemplate": "github-tags"
}
]
}