-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4960e30
commit f4130e1
Showing
46 changed files
with
2,543 additions
and
1,002 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,49 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
lint: | ||
docker: | ||
- image: koalaman/shellcheck-alpine | ||
steps: | ||
- checkout | ||
- run: | ||
name: lint | ||
command: | | ||
shellcheck -x lib/chartlib.sh | ||
shellcheck -x chart_test.sh | ||
shellcheck -x examples/docker-for-mac/my_test.sh | ||
shellcheck -x examples/gke/my_test.sh | ||
shellcheck -x build.sh | ||
shellcheck -x tag.sh | ||
release: | ||
docker: | ||
- image: golang:1.11.1-alpine3.8 | ||
working_directory: /workdir | ||
steps: | ||
- setup_remote_docker | ||
- run: | ||
name: Install tools | ||
command: | | ||
apk add bash build-base ca-certificates curl docker git openssh | ||
curl -SLO https://github.com/goreleaser/goreleaser/releases/download/v0.89.0/goreleaser_Linux_x86_64.tar.gz | ||
mkdir -p /usr/local/goreleaser | ||
tar -xzf goreleaser_Linux_x86_64.tar.gz -C /usr/local/goreleaser | ||
ln -s /usr/local/goreleaser/goreleaser /usr/local/bin/goreleaser | ||
rm -rf goreleaser_Linux_x86_64.tar.gz | ||
- checkout | ||
- run: | ||
name: Checkout tag | ||
command: git gc --aggressive --prune=all && git checkout -b "$CIRCLE_TAG" "$CIRCLE_TAG" | ||
- run: | ||
name: Create release | ||
command: | | ||
go mod download | ||
./build.sh --debug --release | ||
workflows: | ||
version: 2 | ||
untagged-build: | ||
jobs: | ||
- lint | ||
tagged-build: | ||
jobs: | ||
- release: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
branches: | ||
ignore: /.*/ |
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
.circleci | ||
.history | ||
.idea | ||
.editorconfig | ||
.gitignore | ||
.git | ||
Dockerfile | ||
.vscode |
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 |
---|---|---|
|
@@ -12,3 +12,8 @@ charset = utf-8 | |
[*.{yml,yaml}] | ||
indent_size = 2 | ||
|
||
[*.go] | ||
indent_style = tab | ||
|
||
[Makefile] | ||
indent_style = tab |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
.history | ||
.idea | ||
.settings | ||
.project | ||
.classpath | ||
.settings | ||
.vscode | ||
/dist | ||
/config.* | ||
/ct |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
project_name: chart-testing | ||
builds: | ||
- main: app/main.go | ||
binary: ct | ||
env: | ||
- CGO_ENABLED=0 | ||
goarch: | ||
- amd64 | ||
- arm | ||
goos: | ||
- linux | ||
- darwin | ||
- windows | ||
ldflags: | ||
- >- | ||
-X github.com/helm/chart-testing/app/cmd.Version={{ .Tag }} | ||
-X github.com/helm/chart-testing/app/cmd.GitCommit={{ .Commit }} | ||
-X github.com/helm/chart-testing/app/cmd.BuildDate={{ .Date }} | ||
archive: | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
checksum: | ||
name_template: 'checksums.txt' | ||
snapshot: | ||
name_template: "{{ .Tag }}-next" | ||
changelog: | ||
sort: asc | ||
dockers: | ||
- goos: linux | ||
goarch: amd64 | ||
binary: ct | ||
image: quay.io/helmpack/chart-testing | ||
skip_push: false | ||
dockerfile: Dockerfile | ||
tag_templates: | ||
- "{{ .Tag }}" | ||
- latest | ||
build_flag_templates: | ||
- "--build-arg=dist_dir=" | ||
- "--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='ct - The chart testing tool'" | ||
- "--label=org.label-schema.vendor=Helm" | ||
extra_files: | ||
- etc/chart_schema.yaml | ||
- etc/lintconf.yaml |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
|
||
.PHONY: build | ||
build: | ||
go build -o ct app/main.go | ||
|
||
.PHONY: test | ||
test: | ||
go test ./... | ||
|
||
.PHONY: release | ||
release: test | ||
./tag.sh |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
approvers: | ||
- lachie83 | ||
- prydonius | ||
- viglesiasce | ||
- unguiculus | ||
- scottrigby | ||
- mattfarina | ||
- davidkarlsen | ||
- paulczar |
Oops, something went wrong.