Skip to content

Try to duplicate steps #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build packages
on:
push:
tags:
- '*'
jobs:
build-ubuntu-packages:
runs-on: [ubuntu-latest]
steps:
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: install dependencies
run: sudo apt-get update && apt-get install -y dh-golang git vim devscripts equivs build-essential golang-1.13-go golang-1.13-src golang-any golang-go golang-src
- name: Install packagecloud
run: gem install package_cloud
- name: build packagemk-build-deps
run: |
sudo mk-build-deps --install debian/control
sudo debuild -i -us -uc -b

- name: push package to packagecloud
run: |
SUPPORTED_UBUNTU_VERSIONS="trusty focal"
for ubuntu_version in ${SUPPORTED_UBUNTU_VERSIONS}
do
package_cloud push --skip-errors --yes ${PACKAGECLOUD_REPO}/ubuntu/${ubuntu_version} ../*.deb
done

37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ update-deps: govendor
govendor:
go get -u github.com/kardianos/govendor

debs: tmp ldflags ver
$(eval DEB_ROOT := "${TMP}/DEBIAN")
${GO_BUILD_ENV} go build -v -o ${TMP}/usr/bin/log-shuttle ${LDFLAGS} ./cmd/log-shuttle
mkdir -p ${DEB_ROOT}
cat misc/DEBIAN.control | sed s/{{VERSION}}/${VERSION}/ > ${DEB_ROOT}/control
dpkg-deb -Zgzip -b ${TMP} log-shuttle_${VERSION}_amd64.deb
rm -rf ${TMP}

glv:
$(eval GO_LINKER_VALUE := $(shell git describe --tags --always))

Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

log-shuttle (0.19.1) focal; urgency=medium

* update github key

-- Will Farrington <wfarrington@salesforce.com> Thu, 16 Sep 2021 12:49:23 -0400
22 changes: 22 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Source: log-shuttle
Section: devel
Priority: optional
Maintainer: Heroku <heroku-runtime-team@salesforce.com>
Uploaders: Will Farrington <wfarrington@salesforce.com>
Rules-Requires-Root: no
Build-Depends: debhelper-compat (= 12),
golang-any
Standards-Version: 4.4.0
XS-Go-Import-Path: github.com/heroku/log-shuttle
Vcs-Browser: https://github.com/heroku/log-shuttle
Vcs-Git: https://github.com/heroku/log-shuttle.git
Testsuite: autopkgtest-pkg-go

Package: log-shuttle
Architecture: any
Depends: dpkg-dev,
${misc:Depends},
${shlibs:Depends},
Built-Using: ${misc:Built-Using},
Description: Heroku log-shuttle
Log-shuttle is an open source UNIX program that delivers messages from applications and daemons to log routers and processors via HTTPs.
3 changes: 3 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Files: *
Copyright: 2013-2021 Heroku Inc.
License: MIT
1 change: 1 addition & 0 deletions debian/lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
binary-without-manpage
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

# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

%:
dh $@ --builddirectory=_build --buildsystem=golang
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)
1 change: 1 addition & 0 deletions debian/source/lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
diff-contains-git-control-dir
7 changes: 0 additions & 7 deletions misc/DEBIAN.control

This file was deleted.