-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from mallardduck/update-ci
[CI] Various CI improvements
- Loading branch information
Showing
28 changed files
with
311 additions
and
57 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,3 +1,4 @@ | ||
./.dapper | ||
./.cache | ||
./dist | ||
./build |
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
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
File renamed without changes.
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,7 @@ | ||
name: "[helm-locker] CI" | ||
|
||
on: | ||
workflow_call: | ||
pull_request: | ||
push: | ||
branches: | ||
|
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
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
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,10 +1,12 @@ | ||
/.dapper | ||
/.cache | ||
/bin | ||
/build | ||
!/cmd/helm-project-operator/fs/.gitkeep | ||
/cmd/helm-project-operator/fs/* | ||
/dist | ||
*.swp | ||
.idea | ||
/helm-project-operator | ||
/.vscode | ||
get_helm.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,63 @@ | ||
# Make sure to check the documentation at https://goreleaser.com | ||
version: 2 # the goreleaser config version | ||
before: | ||
hooks: | ||
- go mod tidy | ||
builds: | ||
- id: helm-locker | ||
main: ./cmd/helm-locker/main.go | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
binary: helm-locker | ||
ldflags: | ||
- -extldflags | ||
- -static | ||
- -s | ||
- -X main.Version={{.Version}} -X main.GitCommit={{.Commit}} | ||
flags: | ||
- -trimpath | ||
env: | ||
- CGO_ENABLED=0 | ||
- id: helm-project-operator | ||
main: ./cmd/helm-project-operator/main.go | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
binary: helm-project-operator | ||
ldflags: | ||
- -extldflags | ||
- -static | ||
- -s | ||
- -X main.Version={{.Version}} -X main.GitCommit={{.Commit}} | ||
flags: | ||
- -trimpath | ||
env: | ||
- CGO_ENABLED=0 | ||
archives: | ||
- id: helm-project-operator | ||
builds: | ||
- helm-project-operator | ||
name_template: '{{ .Binary }}-{{ .Arch }}' | ||
- id: helm-locker | ||
builds: | ||
- helm-locker | ||
name_template: '{{ .Binary }}-{{ .Arch }}' | ||
release: | ||
prerelease: auto | ||
extra_files: | ||
- glob : ./build/artifacts/*.tgz | ||
checksum: | ||
name_template: 'checksums.txt' | ||
snapshot: | ||
version_template: "{{ incpatch .Version }}-next" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^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
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,8 +1,25 @@ | ||
TARGETS := $(shell ls scripts) | ||
TARGETS := $(shell ls scripts|grep -ve "^util-\|entry") | ||
LOCAL_TARGETS := $(addprefix local-,$(TARGETS)) | ||
|
||
.dapper: | ||
@echo Downloading dapper | ||
@curl -sL https://releases.rancher.com/dapper/latest/dapper-$$(uname -s)-$$(uname -m) > .dapper.tmp | ||
@@chmod +x .dapper.tmp | ||
@./.dapper.tmp -v | ||
@mv .dapper.tmp .dapper | ||
|
||
# Default behavior for targets without dapper | ||
$(TARGETS): | ||
./scripts/$@ | ||
@scripts/$@ | ||
|
||
# Behavior for targets prefixed with "local-" using dapper | ||
$(LOCAL_TARGETS): local-%: .dapper | ||
./.dapper $(@:local-%=%) | ||
|
||
.DEFAULT_GOAL := default | ||
.PHONY: $(TARGETS) $(LOCAL_TARGETS) list | ||
|
||
.PHONY: $(TARGETS) | ||
list: | ||
@LC_ALL=C $(MAKE) -pRrq -f $(firstword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/(^|\n)# Files(\n|$$)/,/(^|\n)# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | grep -E -v -e '^[^[:alnum:]]' -e '^$@$$' | ||
# IMPORTANT: The line above must be indented by (at least one) | ||
# *actual TAB character* - *spaces* do *not* work. |
Oops, something went wrong.