-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add versioning for Docker images (#25)
* Add versioning for Docker images * Update github-actions * Exclude tagging and PR builds from GitHub-actions * Use only a minor update that does not affect the application version
- Loading branch information
1 parent
7950267
commit 75762c5
Showing
8 changed files
with
64 additions
and
17 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.PHONY: generate test depend | ||
|
||
generate: depend test | ||
# Extract appVersion from Chart.yaml and update it in values.yaml | ||
@VERSION=$$(grep 'appVersion:' ./helm-chart/Chart.yaml | awk '{print $$2}' | tr -d '"') && \ | ||
sed -i '' -E "s/^( tag: ).*/\1\"$$VERSION\"/" ./helm-chart/values.yaml | ||
|
||
# Run go generate | ||
@go generate ./... | ||
|
||
# Update README | ||
@cd ./helm-chart && helm-docs | ||
|
||
# Package the Helm chart | ||
@cd ./helm-chart && helm package . | ||
|
||
# Update Helm repo index | ||
@helm repo index . | ||
|
||
# Run Go tests | ||
test: | ||
@go test ./... | ||
|
||
# Install dependencies | ||
depend: | ||
# Install Go dependencies | ||
@go mod download | ||
|
||
# Install helm-docs | ||
@go install github.com/norwoodj/helm-docs/cmd/helm-docs@latest |
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,5 @@ | ||
module cbi-oi-kubecost-exporter | ||
|
||
go 1.21.2 | ||
go 1.21 | ||
|
||
require github.com/caarlos0/env/v7 v7.1.0 |
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
Binary file not shown.
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