From ea17d5781843c4c3b7eee524c39b920aec2e6f82 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Wed, 26 Nov 2025 19:02:51 +0100 Subject: [PATCH] add step to push to gitea --- .vscode/settings.json | 2 ++ Jenkinsfile | 16 ++++++++++++++++ metadata.json | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 metadata.json diff --git a/.vscode/settings.json b/.vscode/settings.json index a1ec93a..a507875 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,6 +7,7 @@ "devel", "fastapi", "getenv", + "Gitea", "hashlib", "hmac", "httpx", @@ -15,6 +16,7 @@ "levelname", "logappender", "NOFILE", + "operatingsystemrelease", "Puppetfile", "pydantic", "pylint", diff --git a/Jenkinsfile b/Jenkinsfile index 6adc8b5..fba4053 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -101,5 +101,21 @@ pipeline { } } } + + stage('Mirror to Gitea') { + steps { + sshagent(['edd05eb6-26b5-4c7b-a5cc-ea2ab899f4fa']) { + script { + // Checkout from GitLab (already done implicitly) + sh """ + git remote add gitea https://gitea.confdroid.com/confdroid/puppet_cd.git + git -c user.email=jenkins@confdroid.com -c user.name=Jenkins push --mirror gitea + """ + } + } + } + when { branch 'main' } // Only on main branch to avoid noise + } + } } } \ No newline at end of file diff --git a/metadata.json b/metadata.json new file mode 100644 index 0000000..4d5cdea --- /dev/null +++ b/metadata.json @@ -0,0 +1,34 @@ +{ + "name": "puppet_cd", + "version": "1.0.1", + "author": "arne@confdroid.com", + "summary": "Puppet module for managing puppet itself", + "license": "GPL-3.0-or-later", + "source": "", + "dependencies": [ + + ], + "operatingsystem_support": [ + { + "operatingsystem": "RedHat", + "operatingsystemrelease": [ + "9" + ] + }, + { + "operatingsystem": "Rocky", + "operatingsystemrelease": [ + "9" + ] + } + ], + "requirements": [ + { + "name": "puppet", + "version_requirement": ">= 7.24 < 9.0.0" + } + ], + "pdk-version": "3.4.0", + "template-url": "pdk-default#3.4.0", + "template-ref": "tags/3.4.0-0-gd3cc13f" + } \ No newline at end of file