Skip to content

Commit

Permalink
feat(packaging): Build Debian Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ngrewe committed Jul 24, 2020
1 parent 97ac38c commit 5f5a243
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 0 deletions.
26 changes: 26 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,32 @@ stages:
- publish: dist
name: python_dists
displayName: Publish Distributions
- job: deb
displayName: Build Debian Package
dependsOn: [python_dist]
pool:
vmImage: 'Ubuntu-16.04'
steps:
- download: current
artifact: build.pythondist
displayName: Download Python Distributions
- script: tar xzf $(Pipeline.Workspace)/build.pythondist/*.tar.gz
displayName: Decompress sdist
- script: cp -r debian vault-ssh-renew-*/
displayName: Bring Debian Control Files into Place
- script: |
sudo apt-get update -qq
sudo apt-get install -yqq debhelper dh-systemd python3-all python3-setuptools
displayName: Install Debian Packaging Tools
- bash: |
pushd vault-ssh-renew-*
dpkg-buildpackage -uc -us
popd
displayName: Build Debian Package
- publish: vault-ssh-renew-*.deb
name: debian_pkg
displayName: Publish Debian Package

- stage: publish
displayName: Publish Packages
dependsOn: build
Expand Down
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
vault-ssh-renew (0.2.0a4-1) unstable; urgency=medium

* Initial release.

-- Niels Grewe <thebeing@halbordnung.de> Sat, 25 Jul 2020 00:04:00 +0200
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
15 changes: 15 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Source: vault-ssh-renew
Section: python
Priority: extra
Maintainer: Niels Grewe <niels.grewe@halbordnung.de>
Build-Depends: debhelper (>= 11), python3-all, python3-setuptools, dh-systemd (>= 1.5)
XS-Python-Version: >=3.6
Standards-Version: 3.9.5

Package: vault-ssh-renew
Architecture: all
Pre-Depends: dpkg (>= 1.16.1), ${misc:Pre-Depends}
Depends: ${python3:Depends}, ${misc:Depends}, python3-pkg-resources, python3-paramiko (>= 2.0.0), python3-click (>= 6.6), python3-requests (>= 2.12.4)
Enhances: ssh-server
Description: Automatic SSH Certificate Renewal Using Vault
Automates the process of renewing SSH certificates from a Vault server.
7 changes: 7 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /usr/bin/make -f

export DH_VERBOSE = 1
export PYBUILD_NAME = vault-ssh-renew

%:
dh $@ --with python2,python3 --buildsystem=pybuild

0 comments on commit 5f5a243

Please sign in to comment.