Skip to content

Commit 0a4af05

Browse files
committed
add binaries release
1 parent c4ced66 commit 0a4af05

File tree

2 files changed

+45
-7
lines changed

2 files changed

+45
-7
lines changed

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Release Go Binaries
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
releases-matrix:
9+
name: Release Matrix
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
goos: [ linux, windows, darwin ]
14+
goarch: [ amd64, arm, arm64, 386 ]
15+
exclude:
16+
- goarch: arm
17+
goos: darwin
18+
- goarch: 386
19+
goos: darwin
20+
- goarch: arm
21+
goos: windows
22+
- goarch: arm64
23+
goos: windows
24+
steps:
25+
- uses: actions/checkout@v2
26+
27+
- name: Set APP_VERSION env
28+
run: echo APP_VERSION=$(echo ${GITHUB_REF} | rev | cut -d'/' -f 1 | rev ) >> ${GITHUB_ENV}
29+
- name: Set BUILD_TIME env
30+
run: echo BUILD_TIME=$(date) >> ${GITHUB_ENV}
31+
- name: Environment Printer
32+
uses: managedkaos/[email protected]
33+
34+
- uses: wangyoucao577/[email protected]
35+
with:
36+
github_token: ${{ secrets.RELEASE_TOKEN }}
37+
goos: ${{ matrix.goos }}
38+
goarch: ${{ matrix.goarch }}
39+
goversion: 1.16
40+
project_path: ./cmd/helmify
41+
ldflags: -X "main.appVersion=${{ env.APP_VERSION }}" -X "main.buildTime=${{ env.BUILD_TIME }}" -X main.gitCommit=${{ github.sha }} -X main.gitRef=${{ github.ref }}

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ Helmify reads a list of [supported k8s objects](#status) from stdin and converts
1616

1717
Submit issue if some features missing for your use-case.
1818

19-
TODO:
20-
- regress
21-
- release
22-
- install guide
23-
2419
## Usage
2520

2621
Example 1: `cat my-app.yaml | helmify mychart`
@@ -40,7 +35,7 @@ Tested with operator-sdk version: "v1.8.0".
4035
```makefile
4136
HELMIFY = $(shell pwd)/bin/helmify
4237
helmify:
43-
$(call go-get-tool,$(HELMIFY),github.com/arttor/helmify/cmd/helmify@v0.2.2)
38+
$(call go-get-tool,$(HELMIFY),github.com/arttor/helmify/cmd/helmify@v0.3.0)
4439

4540
helm: manifests kustomize helmify
4641
$(KUSTOMIZE) build config/default | $(HELMIFY)
@@ -49,7 +44,9 @@ helm: manifests kustomize helmify
4944

5045
## Install
5146

52-
TODO:
47+
Download suitable for your system binary from [the Releases page](https://github.com/arttor/helmify/releases/latest).
48+
49+
Unpack the helmify binary and add it to your PATH and you are good to go!
5350

5451
## Available options
5552
Helmify takes a chart name for an argument.

0 commit comments

Comments
 (0)