Skip to content

Commit a2c4222

Browse files
authored
Merge pull request #41 from ccremer/actions
Add CI/CD pipelines and deb/rpm packaging options
2 parents b6e6c48 + ef2c57d commit a2c4222

File tree

4 files changed

+72
-0
lines changed

4 files changed

+72
-0
lines changed

.github/workflows/build.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- "*"
7+
tags-ignore:
8+
- "*"
9+
pull_request:
10+
types: [opened, reopened]
11+
12+
jobs:
13+
goreleaser:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v1
17+
- uses: actions/setup-go@v2-beta
18+
with:
19+
go-version: '^1.14.1'
20+
- uses: actions/cache@v1
21+
with:
22+
path: /home/runner/go/pkg/mod
23+
key: go-mod
24+
- uses: goreleaser/goreleaser-action@v1
25+
with:
26+
args: release --snapshot --skip-sign

.github/workflows/release.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
goreleaser:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: actions/setup-go@v2-beta
14+
with:
15+
go-version: '^1.14.1'
16+
- uses: actions/cache@v1
17+
with:
18+
path: /home/runner/go/pkg/mod
19+
key: go-mod
20+
- name: Login to Docker hub
21+
run: docker login -u ${{ secrets.DOCKER_HUB_USER }} -p ${{ secrets.DOCKER_HUB_PASSWORD }}
22+
- uses: goreleaser/goreleaser-action@v1
23+
with:
24+
args: release
25+
key: ${{ secrets.SIGNING_KEY }}
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

+15
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,21 @@ changelog:
2323
exclude:
2424
- "^docs:"
2525
- "^test:"
26+
27+
signs:
28+
- artifacts: checksum
29+
args: ["-u", "<thefingerprintid>", "--output", "${signature}", "--detach-sign", "${artifact}"]
30+
31+
nfpms:
32+
- vendor: helm-docs
33+
homepage: https://github.com/norwoodj/helm-docs
34+
maintainer: norwoodj
35+
description: A tool for automatically generating markdown documentation for helm charts
36+
license: GNU General Public License v3.0
37+
formats:
38+
- deb
39+
- rpm
40+
2641
brews:
2742
- github:
2843
owner: norwoodj

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ test:
1313
.PHONY: clean
1414
clean:
1515
rm -f helm-docs
16+
17+
.PHONY: dist
18+
dist:
19+
goreleaser release --rm-dist --snapshot --skip-sign

0 commit comments

Comments
 (0)