generated from cybozu-go/neco-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support k8s 1.28 Signed-off-by: Daichi Sakaue <[email protected]>
- Loading branch information
Showing
16 changed files
with
463 additions
and
374 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
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,28 +1,20 @@ | ||
name: Lint and Test Charts | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "charts/**" | ||
- '!**.md' | ||
|
||
jobs: | ||
lint-test: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # 2.6.1 | ||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
|
@@ -32,13 +24,12 @@ jobs: | |
fi | ||
- name: Run chart-testing (lint) | ||
run: ct lint --config ct.yaml | ||
|
||
- name: Create kind cluster | ||
uses: helm/kind-action@v1.5.0 | ||
uses: helm/kind-action@dda0770415bac9fc20092cacbc54aa298604d140 # 1.8.0 | ||
if: steps.list-changed.outputs.changed == 'true' | ||
with: | ||
node_image: kindest/node:v1.26.3@sha256:94eb63275ad6305210041cdb5aca87c8562cc50fa152dbec3fef8c58479db4ff | ||
|
||
node_image: kindest/node:v1.27.3 | ||
version: v0.20.0 | ||
- name: Apply cert-manager | ||
run: | | ||
kubectl apply -f https://github.com/jetstack/cert-manager/releases/latest/download/cert-manager.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,47 +3,47 @@ on: | |
pull_request: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'main' | ||
jobs: | ||
build: | ||
name: Build book | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: make book | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: book | ||
path: docs/book | ||
retention-days: 1 | ||
- uses: actions/checkout@v4 | ||
- run: make book | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: book | ||
path: docs/book | ||
retention-days: 1 | ||
publish: | ||
name: Publish book on GitHub Pages | ||
runs-on: ubuntu-22.04 | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: gh-pages | ||
# do not remove helm chart related files if present | ||
- run: ls | grep -v -E "index.yaml|.*\.tgz" | xargs rm -rf | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: book | ||
- run: git add . | ||
- name: Check diff | ||
run: | | ||
diffs=$(git status -s) | ||
if [ "$diffs" = "" ]; then | ||
echo "NO_DIFF=1" >> $GITHUB_ENV | ||
else | ||
printf "%s\n" "$diffs" | ||
fi | ||
- name: Commit changes | ||
if: env.NO_DIFF != '1' | ||
run: | | ||
git config --global user.name 'Cybozu Neco' | ||
git config --global user.email '[email protected]' | ||
git commit -m 'update' | ||
- name: Push to gh-pages | ||
if: github.ref == 'refs/heads/main' && env.NO_DIFF != '1' | ||
run: git push origin gh-pages | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: gh-pages | ||
# do not remove helm chart related files if present | ||
- run: ls | grep -v -E "index.yaml|.*\.tgz" | xargs rm -rf | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: book | ||
- run: git add . | ||
- name: Check diff | ||
run: | | ||
diffs=$(git status -s) | ||
if [ "$diffs" = "" ]; then | ||
echo "NO_DIFF=1" >> $GITHUB_ENV | ||
else | ||
printf "%s\n" "$diffs" | ||
fi | ||
- name: Commit changes | ||
if: env.NO_DIFF != '1' | ||
run: | | ||
git config --global user.name 'Cybozu Neco' | ||
git config --global user.email '[email protected]' | ||
git commit -m 'update' | ||
- name: Push to gh-pages | ||
if: github.ref == 'refs/heads/main' && env.NO_DIFF != '1' | ||
run: git push origin gh-pages |
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.