From cb7014b6c8755a13f4245c2d0c4658bfe78f2511 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 16 Jul 2026 11:50:56 +0200 Subject: [PATCH] first commit --- Jenkinsfile | 98 +++++++++++++++++++ debian/changelog | 11 +++ debian/control | 12 +++ debian/rules | 4 + usr/share/keyrings/espos-archive-keyring.gpg | Bin 0 -> 2287 bytes 5 files changed, 125 insertions(+) create mode 100644 Jenkinsfile create mode 100644 debian/changelog create mode 100644 debian/control create mode 100755 debian/rules create mode 100644 usr/share/keyrings/espos-archive-keyring.gpg diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..b005a1f --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,98 @@ +pipeline { + agent any + + environment { + PACKAGE_NAME = "espos-archive-keyring" + APTLY_REPO = "espos-unstable" + + APTLY_HOST = "ubuntu@elordenador.org" + + DEB_FILE = "*.deb" + } + + stages { + + stage('Checkout') { + steps { + checkout scm + } + } + + stage('Install Build Dependencies') { + steps { + sh ''' + sudo apt update + sudo apt install -y build-essential devscripts debhelper lintian + ''' + } + } + + stage("Build Debian Package") { + steps { + sh ''' + dpkg-buildpackage -us -uc + ls -lah .. + ''' + } + } + + stage("Lintian Check") { + steps { + sh ''' + lintian ../*.deb || true + ''' + } + } + stage("Upload to aptly") { + steps { + sshagent(['srv01_elordenador_org']) { + sh ''' + ssh-keyscan -H elordenador.org >> ~/.ssh/known_hosts + scp ../${DEB_FILE} ${APTLY_HOST}:/tmp/ + ''' + } + } + } + stage("Publish Repository") { + steps { + sshagent(['srv01_elordenador_org']) { + + withCredentials([ + string( + credentialsId: 'aptly_gpg_pass', + variable: 'GPG_PASS' + ) + ]) { + + sh ''' + ssh ${APTLY_HOST} " + aptly repo add espos-unstable /tmp/*.deb + + if aptly publish list | grep -q espos-unstable + then + aptly publish update \ + -passphrase='${GPG_PASS}' \ + espos-unstable + else + aptly publish repo \ + -distribution=espos-unstable \ + -component=main \ + -passphrase='${GPG_PASS}' \ + espos-unstable + fi + " + ''' + } + } + } + } + } + post { + success { + echo "Paquete publicado correctamente" + } + failure { + echo "Error construyendo paquete" + } + } +} \ No newline at end of file diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..2ccafa2 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,11 @@ +espos-archive-keyring (26.1) espos-unstable; urgency=medium + + * Better versioning for keyring + + -- daniel Thu, 16 Jul 2026 11:49:20 +0200 + +espos-archive-keyring (1.0) espos-unstable; urgency=medium + + * Initial EspOS archive keyring + + -- daniel Thu, 16 Jul 2026 11:46:51 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..272205d --- /dev/null +++ b/debian/control @@ -0,0 +1,12 @@ +Source: espos-archive-keyring +Section: misc +Priority: optional +Maintainer: EspOS Team +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.7.0 + +Package: espos-archive-keyring +Architecture: all +Depends: ${misc:Depends} +Description: GPG archive keyring for EspOS repositories + This package installs the GPG keys required to verify EspOS packages. \ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ed7f152 --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ \ No newline at end of file diff --git a/usr/share/keyrings/espos-archive-keyring.gpg b/usr/share/keyrings/espos-archive-keyring.gpg new file mode 100644 index 0000000000000000000000000000000000000000..d8a6873a36beb3dc1c7a85610323d7592c0acb36 GIT binary patch literal 2287 zcmVZ%w}t}U4OW@Xvo!1z*N z?g37!4^1kV2W`4p+sqb>D@-*;5Cu2A32DS6NGQGr*|5@QvFNeh?OQ10y;K-~IFtTK zLUCuc)~C^?STJeQQdIL>3**rMWmTV%w@t^Ztv|?8Ktzv>dauB7Uw%-KMx)0t&S#@; zr!laVkrmL}Jc@HUD=63C&XcAh)c;*Xl1Ti^^HP2<_SQd$LBF=ngb;f6TXt$_^YY1p z52y1vYQ)i!mz#T;DE(z&O&&2l!k{)Fj|bAJnVcfLJcCoxf(!N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