-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Helm public repo #470
Merged
Merged
Helm public repo #470
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
37184ad
Chart docs, workflow refactor / improvements
ideas-into-software 9b263d2
Chart docs, workflow refactor / improvements
ideas-into-software 2508ffe
Bump chart version
ideas-into-software 706ffb5
Scripts fix
ideas-into-software 3e03ca1
Helm CI Workflow fix
ideas-into-software fd6fecf
Scripts fix
ideas-into-software 5edf516
Kubeval issues
ideas-into-software 50f080c
Helm Chart docs update
ideas-into-software f203b1f
Remove release job, switch to 'helm-docs-action'
ideas-into-software 832abdb
'master' is no more
ideas-into-software ad2c391
helm-docs validate no diff
ideas-into-software 8e1e2de
helm-docs validate test
ideas-into-software 2d91416
Helm Chart matrix testing
ideas-into-software c8e88b0
Publish automatically to SML Helm Chart Repo
ideas-into-software f30fc7b
Metadata and docs improvements
ideas-into-software ef98655
Metadata and docs improvements
ideas-into-software 38fec91
Metadata and docs improvements
ideas-into-software File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,112 @@ | ||
name: Bootzooka Helm Chart CI | ||
|
||
on: | ||
push: | ||
paths: | ||
- "helm/**" | ||
- ".github/**" | ||
pull_request: | ||
paths: | ||
- "helm/**" | ||
- ".github/**" | ||
|
||
jobs: | ||
lint-chart: | ||
# run on external PRs, but not on internal PRs since those will be run by push to branch | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
name: Lint Helm Chart | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Check-out repository | ||
id: repo-checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Run chart-testing (lint) | ||
id: ct-lint | ||
uses: helm/chart-testing-action@v1.1.0 | ||
with: | ||
command: lint | ||
config: .github/helm-ct.yml | ||
|
||
install-test-chart: | ||
needs: | ||
- lint-chart | ||
name: Install & Test Helm Chart | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
matrix: | ||
k8s: | ||
- v1.15.12 | ||
- v1.16.15 | ||
- v1.17.11 | ||
- v1.18.8 | ||
- v1.19.4 | ||
steps: | ||
- name: Check-out repository | ||
id: repo-checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Create kind ${{ matrix.k8s }} cluster | ||
id: kind-cluster-setup | ||
uses: helm/kind-action@v1.1.0 | ||
with: | ||
node_image: kindest/node:${{ matrix.k8s }} | ||
wait: "120s" | ||
|
||
- name: Run chart-testing (install) | ||
id: ct-install | ||
uses: helm/chart-testing-action@v1.1.0 | ||
with: | ||
command: install | ||
config: .github/helm-ct.yml | ||
|
||
validate-chart-docs: | ||
needs: | ||
- lint-chart | ||
- install-test-chart | ||
name: Validate Helm Chart Docs | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Check-out repository | ||
id: repo-checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Run helm-docs | ||
id: helm-docs-run | ||
uses: ideas-into-software/helm-docs-action@main | ||
|
||
- name: Validate there's no diff | ||
id: git-no-diff | ||
run: git diff --exit-code | ||
|
||
publish-chart: | ||
needs: | ||
- lint-chart | ||
- install-test-chart | ||
- validate-chart-docs | ||
name: Publish Helm Chart | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Check-out repository | ||
id: repo-checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Publish Helm Chart | ||
id: helm-publish-chart | ||
uses: stefanprodan/helm-gh-pages@v1.2.0 | ||
with: | ||
token: ${{ secrets.CR_TOKEN }} | ||
charts_dir: helm | ||
charts_url: https://softwaremill.github.io/sml-helm-public-repo | ||
owner: softwaremill | ||
repository: sml-helm-public-repo | ||
helm_version: 3.4.1 | ||
linting: off |
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,41 @@ | ||
name: Bootzooka CI | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- "helm/**" | ||
pull_request: | ||
paths-ignore: | ||
- "helm/**" | ||
|
||
jobs: | ||
scala-ts-tests: | ||
# run on external PRs, but not on internal PRs since those will be run by push to branch | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
name: Scala and TypeScript testing | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- name: Check-out repository | ||
id: repo-checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 11 | ||
id: jdk-setup | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Cache SBT | ||
id: cache-sbt | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.sbt | ||
~/.ivy2/cache | ||
~/.coursier | ||
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} | ||
|
||
- name: Run tests | ||
id: run-tests | ||
run: sbt test |
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -17,6 +17,33 @@ To build a docker image, run `backend/docker:publishLocal`. This will create the | |
|
||
You can test the image by using the provided `docker-compose.yml` file. | ||
|
||
|
||
## Kubernetes | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good docs, thanks! 👍 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thank you! |
||
|
||
Use [Helm](https://helm.sh/) to easily deploy Bootzooka into [Kubernetes](https://kubernetes.io/) cluster. | ||
|
||
### Add SoftwareMill Helm repository | ||
|
||
``` | ||
helm repo add softwaremill https://charts.softwaremill.com/ | ||
helm repo update | ||
``` | ||
|
||
### Fetch and Customize Bootzooka chart | ||
|
||
``` | ||
helm fetch softwaremill/bootzooka --untar | ||
``` | ||
|
||
### Install Bootzooka chart | ||
|
||
``` | ||
helm install --generate-name bootzooka | ||
``` | ||
|
||
Please see [Bootzooka Helm Chart documentation](https://github.com/softwaremill/bootzooka/blob/master/helm/bootzooka/README.md) for more information, including configuration options. | ||
|
||
|
||
## Heroku | ||
|
||
Bootzooka-based applications can be easily deployed to [Heroku](https://www.heroku.com). | ||
|
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,26 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ | ||
|
||
# Helm-Docs template | ||
README.md.gotmpl |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this stay?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this setup will duplicated across all SoftwareMill repositories / projects for which Helm Charts exist - currently around 30 SML applications (both internal and open-source) are deployed using Helm; so this is just for additional diagnostic info, it simply outputs additional info during the "Run chart-testing (lint)" (e.g. https://github.com/softwaremill/bootzooka/runs/1447485540?check_suite_focus=true) and "Run chart-testing (install)" (e.g. https://github.com/softwaremill/bootzooka/runs/1447487632?check_suite_focus=true) jobs; I can remove this setting now if you insist, but IMHO we should leave it until we have this implemented across several setups in case any changes are needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I was wondering if it's not a left-over from dev