diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7600acb..9128654 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ stages: - build + - publish lint: image: nixery.dev/shell/diffutils/go/golangci-lint @@ -42,4 +43,42 @@ build:aarch64: artifacts: paths: - signaldctl - expire_in: 1 month \ No newline at end of file + 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 \ No newline at end of file diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..53a1ea2 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +signald-go (0.1.0) unstable; urgency=medium + + * Initial release + + -- Finn Fri, 29 Jan 2021 20:13:14 -0800 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +11 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..1125612 --- /dev/null +++ b/debian/control @@ -0,0 +1,24 @@ +Source: signald-go +Section: devel +Priority: optional +Maintainer: finn +Uploaders: finn +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 + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..1b26801 --- /dev/null +++ b/debian/copyright @@ -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 . + . + 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. \ No newline at end of file diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..cec628c --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,2 @@ +[DEFAULT] +pristine-tar = True diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..644abc1 --- /dev/null +++ b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +override_dh_auto_install: + dh_auto_install -- --no-source + +%: + dh $@ --buildsystem=golang --with=golang diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native)