Skip to content

Commit 466abd4

Browse files
authored
Merge pull request #59 from launchdarkly/victor/publish-deb-rpm-packages
Generate deb and rpm packages.
2 parents cba9503 + d77d46e commit 466abd4

File tree

5 files changed

+43
-3
lines changed

5 files changed

+43
-3
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474
steps:
7575
- checkout
7676
- setup_remote_docker
77+
- run: sudo apt-get install rpm
7778
- run: curl -sL https://git.io/goreleaser | bash -s -- --rm-dist --skip-publish --skip-validate --release-notes <(make echo-release-notes)
7879

7980
publish:
@@ -83,6 +84,7 @@ jobs:
8384
steps:
8485
- checkout
8586
- setup_remote_docker
87+
- run: sudo apt-get install rpm
8688
- run: curl -sL https://git.io/goreleaser | bash -s -- --rm-dist --release-notes <(make echo-release-notes)
8789

8890

.goreleaser.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@ builds:
1111
- 386
1212
- amd64
1313

14+
nfpm:
15+
name_template: "{{ .ProjectName }}_{{ .Version }}.{{ .Arch }}"
16+
17+
homepage: https://launchdarkly.com/
18+
maintainer: LaunchDarkly <[email protected]>
19+
description: Job for finding and sending feature flag code references to LaunchDarkly
20+
license: Apache 2.0
21+
vendor: LaunchDarkly
22+
23+
formats:
24+
- deb
25+
- rpm
26+
27+
replacements:
28+
386: i386
29+
1430
release:
1531
# If set to auto, will mark the release as not ready for production
1632
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
@@ -20,7 +36,7 @@ release:
2036
brew:
2137
name: ld-find-code-refs
2238

23-
description: "Job for finding and sending feature flag code references to LaunchDarkly"
39+
description: Job for finding and sending feature flag code references to LaunchDarkly
2440

2541
homepage: "https://launchdarkly.com"
2642

@@ -39,6 +55,6 @@ brew:
3955
bin.install "ld-find-code-refs"
4056
4157
commit_author:
42-
name: goreleaserbot
58+
name: LaunchDarklyCI
4359
4460

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to the ld-find-code-refs program will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [0.5.0] - 2019-02-01
6+
### Added
7+
- Generate deb and rpm packages when releasing artifacts.
8+
59
### Changed
610
- Automate Homebrew releases
711
- Added word boundaries to flag key regexes.

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,24 @@ brew install ld-find-code-refs
3232

3333
You can now run `ld-find-code-refs`.
3434

35+
#### Linux
36+
We do not yet have repositories set up for our linux packages, but we do upload deb and rpm packages with our github releases.
37+
38+
##### Ubuntu
39+
This shell script can be used to download and install `ag` and `ld-find-code-refs` on Ubuntu.
40+
41+
```shell
42+
apt-get install silversearcher-ag
43+
44+
wget -qO- https://api.github.com/repos/launchdarkly/ld-find-code-refs/releases/latest \
45+
| grep "browser_download_url" \
46+
| grep "amd64.deb" \
47+
| cut -d'"' -f4 \
48+
| wget -qi - -O ld-find-code-refs.amd64.deb
49+
50+
dpkg -i ld-find-code-refs.amd64.deb
51+
```
52+
3553
#### Manual
3654

3755
Precompiled binaries for the latest release can be found [here](https://github.com/launchdarkly/ld-find-code-refs/releases/latest).

build/package/circleci/orb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ executors:
3333
LD_HUNK_URL_TEMPLATE: << parameters.hunk_url_template >>
3434
LD_DEFAULT_BRANCH: << parameters.default_branch >>
3535
docker:
36-
- image: launchdarkly/ld-find-code-refs:0.4.0
36+
- image: launchdarkly/ld-find-code-refs:0.5.0
3737
commands:
3838
find-flags:
3939
steps:

0 commit comments

Comments
 (0)