-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(bors): merge pull request #546
546: Cherry Pick PR 545 to develop r=tiagolobocastro a=tiagolobocastro build: update control-plane dep Signed-off-by: Tiago Castro <[email protected]> Co-authored-by: Tiago Castro <[email protected]>
- Loading branch information
Showing
5 changed files
with
156 additions
and
9 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 |
---|---|---|
|
@@ -24,15 +24,67 @@ jobs: | |
# Publish the Chart.yaml locally | ||
# Note this does not commit the Chart.yaml changes this the branch | ||
nix-shell --pure --run "./scripts/helm/publish-chart-yaml.sh --app-tag "$tag"" ./scripts/helm/shell.nix | ||
echo "PUBLISH_CHART=1" >> $GITHUB_ENV | ||
else | ||
branch="${{ github.ref_name }}" | ||
nix-shell --pure --run "./scripts/helm/publish-chart-yaml.sh --check-chart "$branch"" ./scripts/helm/shell.nix | ||
fi | ||
nix-shell --pure --run "SKIP_GIT=1 ./scripts/helm/generate-readme.sh" ./scripts/helm/shell.nix | ||
- name: Publish Mayastor Helm chart | ||
uses: stefanprodan/[email protected] | ||
if: ${{ env.PUBLISH_CHART }} | ||
if: ${{ github.ref_type == 'tag' }} | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
charts_dir: . | ||
|
||
update-chart: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.ref_type == 'tag' }} | ||
needs: | ||
- release-chart | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: cachix/install-nix-action@v22 | ||
- name: Pre-populate nix-shell | ||
run: | | ||
export NIX_PATH=nixpkgs=$(jq '.nixpkgs.url' nix/sources.json -r) | ||
echo "NIX_PATH=$NIX_PATH" >> $GITHUB_ENV | ||
nix-shell --pure --run "echo" ./scripts/helm/shell.nix | ||
- name: Publish locally in the workspace | ||
run: | | ||
tag="${{ github.ref_name }}" | ||
nix-shell --pure --run "./scripts/helm/publish-chart-yaml.sh --released "$tag"" ./scripts/helm/shell.nix | ||
nix-shell --pure --run "SKIP_GIT=1 ./scripts/helm/generate-readme.sh" ./scripts/helm/shell.nix | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: "chore(ci): update future helm chart versions" | ||
committer: GitHub <[email protected]> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
title: Bump future helm chart version on the release branch | ||
labels: | | ||
update-release-branch | ||
automated-pr | ||
draft: false | ||
signoff: true | ||
token: ${{ secrets.ORG_CI_GITHUB }} | ||
- name: Approve Pull Request by CI Bot | ||
if: ${{ steps.cpr.outputs.pull-request-number }} | ||
run: | | ||
gh pr review ${{ steps.cpr.outputs.pull-request-number }} --approve | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
- name: Approve Pull Request by CI User | ||
if: ${{ steps.cpr.outputs.pull-request-number }} | ||
run: | | ||
gh pr review ${{ steps.cpr.outputs.pull-request-number }} --approve | ||
env: | ||
GH_TOKEN: ${{ secrets.ORG_CI_GITHUB_2 }} | ||
- name: Bors Merge Pull Request | ||
if: ${{ steps.cpr.outputs.pull-request-number }} | ||
run: | | ||
gh pr comment ${{ steps.cpr.outputs.pull-request-number }} --body "bors merge" | ||
env: | ||
GH_TOKEN: ${{ secrets.ORG_CI_GITHUB }} |
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 |
---|---|---|
|
@@ -21,6 +21,6 @@ | |
.idea/ | ||
*.tmproj | ||
.vscode/ | ||
*.md | ||
README.md.tmpl | ||
# Nix Shell | ||
*.nix |
Submodule control-plane
updated
23 files
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