3
0

add step to push to gitea

This commit is contained in:
Arne Teuke
2025-11-26 19:02:51 +01:00
parent 07754ec879
commit ea17d57818
3 changed files with 52 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
"devel",
"fastapi",
"getenv",
"Gitea",
"hashlib",
"hmac",
"httpx",
@@ -15,6 +16,7 @@
"levelname",
"logappender",
"NOFILE",
"operatingsystemrelease",
"Puppetfile",
"pydantic",
"pylint",

16
Jenkinsfile vendored
View File

@@ -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
}
}
}
}

34
metadata.json Normal file
View File

@@ -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"
}