Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
  • Loading branch information
unguiculus committed Sep 1, 2020
1 parent ca054ff commit 72560d3
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 31 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
with:
go-version: "1.14.5"

- uses: actions/cache@v1
- name: Cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand Down
29 changes: 28 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$GITHUB_ACTOR@users.noreply.github.com"
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
Expand Down
29 changes: 0 additions & 29 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: helm-bot@users.noreply.github.com
folder: Formula
homepage: https://github.com/helm/chart-releaser/
description: Hosting Helm Charts via GitHub Pages and Releases
test: |
system "#{bin}/cr --version"

0 comments on commit 72560d3

Please sign in to comment.