-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dependabot/docker/docker/cassandra/bitnami…
…/cassandra-5.0.0
- Loading branch information
Showing
344 changed files
with
8,271 additions
and
5,180 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
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 |
---|---|---|
|
@@ -75,7 +75,7 @@ jobs: | |
run: echo "${{needs.gomod.outputs.gomod}}" > go.mod | ||
- name: restore_gosum | ||
run: echo "${{needs.gomod.outputs.gosum}}" > go.sum | ||
- uses: helm/[email protected] | ||
- uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0 | ||
- run: | | ||
make install-csi-hostpath-driver | ||
make install-minio | ||
|
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,77 @@ | ||
name: Publish docs | ||
permissions: | ||
contents: read | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
release_tag: | ||
description: 'Existing git tag in the format x.x.x' | ||
required: true | ||
type: string | ||
workflow_dispatch: | ||
inputs: | ||
release_tag: | ||
description: 'Existing git tag in the format x.x.x' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build_docs: | ||
runs-on: ubuntu-latest | ||
env: | ||
RELEASE_TAG: ${{ inputs.release_tag }} | ||
steps: | ||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
with: | ||
ref: ${{ env.RELEASE_TAG }} | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
run_install: false | ||
package_json_file: docs_new/package.json | ||
version: 8 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
- name: Install dependencies | ||
run: pnpm install | ||
working-directory: ./docs_new | ||
- name: Build with VitePress | ||
run: | | ||
echo "{\"version\":\"${RELEASE_TAG}\"}" > ./.vitepress/version.json | ||
pnpm docs:build | ||
working-directory: ./docs_new | ||
- name: Download the helm index | ||
run: | | ||
curl https://github.com/kanisterio/kanister/releases/download/${RELEASE_TAG}/helm_index.yaml -f -L -o docs_new/.vitepress/dist/index.yaml | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: docs_new/.vitepress/dist | ||
name: docs | ||
|
||
publish_docs: | ||
needs: build_docs | ||
|
||
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | ||
permissions: | ||
pages: write # to deploy to Pages | ||
id-token: write # to verify the deployment originates from an appropriate source | ||
|
||
# Deploy to the github-pages environment | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
# Specify runner + deployment step | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action | ||
with: | ||
artifact_name: docs |
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 |
---|---|---|
|
@@ -91,79 +91,50 @@ jobs: | |
export HELM_RELEASE_REPO_INDEX=https://charts.kanister.io/ | ||
make package-helm VERSION=${RELEASE_TAG} | ||
- name: Free Disk Space (Ubuntu) | ||
uses: jlumbroso/free-disk-space@main | ||
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 | ||
- name: gorelease | ||
run: make gorelease | ||
env: | ||
GHCR_LOGIN_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GHCR_LOGIN_USER: ${{ github.actor }} | ||
GORELEASE_PARAMS: ${{ env.DRAFT_RELEASE == 'true' && '--draft' || '' }} | ||
## Upload to use in docs publishing | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: helm-index | ||
path: helm_package/index.yaml | ||
- id: output_release | ||
run: echo "release_url=https://github.com/kanisterio/kanister/releases/tag/${RELEASE_TAG}" >> "$GITHUB_OUTPUT" | ||
|
||
build_docs: | ||
runs-on: ubuntu-latest | ||
needs: [run_if, release_packages] | ||
env: | ||
RELEASE_TAG: ${{ needs.run_if.outputs.release_tag }} | ||
steps: | ||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
with: | ||
ref: ${{ env.RELEASE_TAG }} | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
run_install: false | ||
package_json_file: docs_new/package.json | ||
version: 8 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
- name: Install dependencies | ||
run: pnpm install | ||
working-directory: ./docs_new | ||
- name: Build with VitePress | ||
run: | | ||
echo "{\"version\":\"${RELEASE_TAG}\"}" > ./.vitepress/version.json | ||
pnpm docs:build | ||
working-directory: ./docs_new | ||
- name: download helm index | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: helm-index | ||
path: docs_new/.vitepress/dist/helm_charts/ | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: docs_new/.vitepress/dist | ||
|
||
publish_docs_and_charts: | ||
needs: build_docs | ||
|
||
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | ||
permissions: | ||
contents: read | ||
pages: write # to deploy to Pages | ||
id-token: write # to verify the deployment originates from an appropriate source | ||
uses: ./.github/workflows/publish_docs.yaml | ||
with: | ||
release_tag: ${{ needs.run_if.outputs.release_tag }} | ||
|
||
# Deploy to the github-pages environment | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
# Specify runner + deployment step | ||
runs-on: ubuntu-latest | ||
publish_charts: | ||
needs: [run_if, release_packages] | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
RELEASE_TAG: ${{ needs.run_if.outputs.release_tag }} | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action | ||
- name: clone helm pages | ||
run: | | ||
git clone https://infraq:${GH_TOKEN}@github.com/kanisterio/kanister-charts | ||
- name: Download the helm index | ||
working-directory: ./kanister-charts | ||
run: | | ||
curl https://github.com/kanisterio/kanister/releases/download/${RELEASE_TAG}/helm_index.yaml -f -L -o index.yaml | ||
- name: Commit changes | ||
working-directory: ./kanister-charts | ||
run: | | ||
git config --global user.name 'Kasten Production' | ||
git config --global user.email '[email protected]' | ||
git add -A | ||
git commit -s -m "Update chart index to ${RELEASE_TAG}" | ||
- name: Push changes | ||
working-directory: ./kanister-charts | ||
run: | | ||
git push | ||
## TODO: using https://github.com/slackapi/slack-github-action/blob/main/README.md#technique-3-slack-incoming-webhook | ||
## we need to set up incoming webhook | ||
|
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 |
---|---|---|
|
@@ -19,13 +19,13 @@ jobs: | |
steps: | ||
- | ||
name: Add label | ||
uses: actions-ecosystem/[email protected] | ||
uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1.1.3 | ||
with: | ||
labels: "triage" | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
- | ||
name: Add comment | ||
uses: actions-ecosystem/[email protected] | ||
uses: actions-ecosystem/action-create-comment@e23bc59fbff7aac7f9044bd66c2dc0fe1286f80b # v1.0.2 | ||
if: github.event.action == 'opened' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -37,7 +37,7 @@ jobs: | |
If you haven't already, please take a moment to review our project's [Code of Conduct](https://github.com/kanisterio/kanister/blob/master/CODE_OF_CONDUCT.md) document. | ||
- | ||
name: Update project | ||
uses: alex-page/[email protected] | ||
uses: alex-page/github-project-automation-plus@303f24a24c67ce7adf565a07e96720faf126fe36 # v0.9.0 | ||
with: | ||
repo-token: ${{ secrets.GH_TOKEN }} # must use a PAT here | ||
project: Kanister | ||
|
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
steps: | ||
- | ||
name: Comment | ||
uses: actions-ecosystem/[email protected] | ||
uses: actions-ecosystem/action-create-comment@e23bc59fbff7aac7f9044bd66c2dc0fe1286f80b # v1.0.2 | ||
# Avoid adding a comment when the PR is on the same repo. | ||
if: github.event.action == 'opened' && github.event.pull_request.head.repo.fork | ||
with: | ||
|
@@ -31,7 +31,7 @@ jobs: | |
If you haven't already, please take a moment to review our project [contributing guideline](https://github.com/kanisterio/kanister/blob/master/CONTRIBUTING.md) and [Code of Conduct](https://github.com/kanisterio/kanister/blob/master/CODE_OF_CONDUCT.md) document. | ||
- | ||
name: Update status in project | ||
uses: alex-page/[email protected] | ||
uses: alex-page/github-project-automation-plus@303f24a24c67ce7adf565a07e96720faf126fe36 # v0.9.0 | ||
# This only works for PRs opened in the same repo and not by dependabot. | ||
# Other PRs don't get the necessary credentials. | ||
if: github.repository == 'kanisterio/kanister' && !github.event.pull_request.head.repo.fork | ||
|
Oops, something went wrong.