forked from helm/chart-releaser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Reinhard Nägele <[email protected]>
- Loading branch information
1 parent
ca054ff
commit 72560d3
Showing
3 changed files
with
30 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,11 +16,38 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: "1.14.5" | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Install tools | ||
run: | | ||
./setup.sh | ||
echo "::add-path::$(go env GOPATH)/bin" | ||
- name: Tag | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
tag='${{ github.event.inputs.version }}' | ||
git tag --annotate --message "Tag for release $tag" "$tag" | ||
git push "https://x-access-token:${{ secrets.CI_TOKEN }}/$GITHUB_REPOSITORY" "refs/tags/$tag" | ||
git push "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY" "refs/tags/$tag" | ||
- name: Check License Headers | ||
run: mage -v checkLicenseHeaders | ||
|
||
- name: Lint | ||
run: mage -v lint | ||
|
||
- name: Test | ||
run: mage -v test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,32 +27,3 @@ checksum: | |
name_template: 'checksums.txt' | ||
snapshot: | ||
name_template: "{{ .Tag }}-next" | ||
dockers: | ||
- goos: linux | ||
goarch: amd64 | ||
binaries: | ||
- cr | ||
skip_push: false | ||
dockerfile: Dockerfile | ||
image_templates: | ||
- quay.io/helmpack/chart-releaser:{{ .Tag }} | ||
- quay.io/helmpack/chart-releaser:latest | ||
build_flag_templates: | ||
- --label=org.label-schema.schema-version=1.0 | ||
- --label=org.label-schema.version={{ .Version }} | ||
- --label=org.label-schema.name={{ .ProjectName }} | ||
- --label=org.label-schema.build-date={{ .Date }} | ||
- --label=org.label-schema.description='cr - The chart release tool' | ||
- --label=org.label-schema.vendor=Helm | ||
brews: | ||
- github: | ||
owner: helm | ||
name: homebrew-tap | ||
commit_author: | ||
name: helm-bot | ||
email: [email protected] | ||
folder: Formula | ||
homepage: https://github.com/helm/chart-releaser/ | ||
description: Hosting Helm Charts via GitHub Pages and Releases | ||
test: | | ||
system "#{bin}/cr --version" |