add step to push to gitea
This commit is contained in:
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -7,6 +7,7 @@
|
|||||||
"devel",
|
"devel",
|
||||||
"fastapi",
|
"fastapi",
|
||||||
"getenv",
|
"getenv",
|
||||||
|
"Gitea",
|
||||||
"hashlib",
|
"hashlib",
|
||||||
"hmac",
|
"hmac",
|
||||||
"httpx",
|
"httpx",
|
||||||
@@ -15,6 +16,7 @@
|
|||||||
"levelname",
|
"levelname",
|
||||||
"logappender",
|
"logappender",
|
||||||
"NOFILE",
|
"NOFILE",
|
||||||
|
"operatingsystemrelease",
|
||||||
"Puppetfile",
|
"Puppetfile",
|
||||||
"pydantic",
|
"pydantic",
|
||||||
"pylint",
|
"pylint",
|
||||||
|
|||||||
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@@ -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
34
metadata.json
Normal 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"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user