Add debian packaging, mostly generated by dh-make-golang
This commit is contained in:
parent
ff3bed1d9f
commit
4091303bf7
8 changed files with 111 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- publish
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
image: nixery.dev/shell/diffutils/go/golangci-lint
|
image: nixery.dev/shell/diffutils/go/golangci-lint
|
||||||
|
@ -42,4 +43,42 @@ build:aarch64:
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- signaldctl
|
- signaldctl
|
||||||
expire_in: 1 month
|
expire_in: 1 month
|
||||||
|
|
||||||
|
build:x86:deb:
|
||||||
|
stage: build
|
||||||
|
image: debian:latest
|
||||||
|
before_script:
|
||||||
|
- apt-get update
|
||||||
|
- apt-get install -y dpkg-dev dh-golang golang-any golang-github-spf13-cobra-dev golang-github-spf13-viper-dev
|
||||||
|
- apt-get install -y ./*.deb
|
||||||
|
script:
|
||||||
|
- dpkg-buildpackage -us -uc -b
|
||||||
|
- mv ../signald-go_* .
|
||||||
|
needs:
|
||||||
|
- project: signald/qrterminal
|
||||||
|
job: build
|
||||||
|
ref: master
|
||||||
|
artifacts: true
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- "signald-go_*"
|
||||||
|
expire_in: 1 month
|
||||||
|
|
||||||
|
publish:
|
||||||
|
image: registry.gitlab.com/signald/infrastructure/signald-builder-x86:d5e68709
|
||||||
|
stage: publish
|
||||||
|
tags: [deb-signer]
|
||||||
|
needs: ["build:x86:deb"]
|
||||||
|
script:
|
||||||
|
- aptly repo create signald
|
||||||
|
- aptly mirror create -ignore-signatures backfill-mirror https://updates.signald.org "${DISTRIBUTION}" main
|
||||||
|
- aptly mirror update -ignore-signatures backfill-mirror
|
||||||
|
- aptly repo import backfill-mirror signald signald
|
||||||
|
- aptly repo add signald *.deb
|
||||||
|
- aptly publish repo -config=.aptly.conf -batch -gpg-key="${SIGNING_KEY}" -distribution="${DISTRIBUTION}" "signald" "s3:updates.signald.org:"
|
||||||
|
variables:
|
||||||
|
DISTRIBUTION: unstable
|
||||||
|
only:
|
||||||
|
- main
|
||||||
|
- tags
|
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
signald-go (0.1.0) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Initial release
|
||||||
|
|
||||||
|
-- Finn <finn@janky.solutions> Fri, 29 Jan 2021 20:13:14 -0800
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
11
|
24
debian/control
vendored
Normal file
24
debian/control
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
Source: signald-go
|
||||||
|
Section: devel
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: finn <finn@janky.solutions>
|
||||||
|
Uploaders: finn <finn@janky.solutions>
|
||||||
|
Build-Depends: debhelper (>= 11),
|
||||||
|
dh-golang,
|
||||||
|
golang-any,
|
||||||
|
golang-github-spf13-cobra-dev,
|
||||||
|
golang-github-spf13-viper-dev
|
||||||
|
Standards-Version: 4.2.1
|
||||||
|
Homepage: https://signald.org
|
||||||
|
Vcs-Browser: https://gitlab.com/signald/signald-go
|
||||||
|
Vcs-Git: https://gitlab.com/signald/signald-go.git
|
||||||
|
XS-Go-Import-Path: gitlab.com/signald/signald-go
|
||||||
|
Testsuite: autopkgtest-pkg-go
|
||||||
|
|
||||||
|
Package: signald-go
|
||||||
|
Architecture: any
|
||||||
|
Built-Using: ${misc:Built-Using}
|
||||||
|
Depends: ${misc:Depends},
|
||||||
|
${shlibs:Depends}
|
||||||
|
Description: a simple command line client for signald
|
||||||
|
|
31
debian/copyright
vendored
Normal file
31
debian/copyright
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: signald-go
|
||||||
|
Source: TODO
|
||||||
|
Files-Excluded:
|
||||||
|
Godeps/_workspace
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: 2021 Finn Herzfeld
|
||||||
|
License: GPL-3.0+
|
||||||
|
|
||||||
|
License: GPL-3.0+
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
.
|
||||||
|
This package is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
.
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
.
|
||||||
|
On Debian systems, the complete text of the GNU General
|
||||||
|
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
|
||||||
|
|
||||||
|
# Please also look if there are files or directories which have a
|
||||||
|
# different copyright/license attached and list them here.
|
||||||
|
# Please avoid picking licenses with terms that are more restrictive than the
|
||||||
|
# packaged work, as it may make Debian's contributions unacceptable upstream.
|
2
debian/gbp.conf
vendored
Normal file
2
debian/gbp.conf
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[DEFAULT]
|
||||||
|
pristine-tar = True
|
7
debian/rules
vendored
Executable file
7
debian/rules
vendored
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
override_dh_auto_install:
|
||||||
|
dh_auto_install -- --no-source
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@ --buildsystem=golang --with=golang
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
3.0 (native)
|
Loading…
Reference in a new issue