commit cb7014b6c8755a13f4245c2d0c4658bfe78f2511 Author: Daniel Date: Thu Jul 16 11:50:56 2026 +0200 first commit 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 0000000..d8a6873 Binary files /dev/null and b/usr/share/keyrings/espos-archive-keyring.gpg differ