forked from karmada-io/karmada
-
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.
publish chart release v1.10.1-work-suspend
- Loading branch information
Showing
19 changed files
with
40 additions
and
2,445 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
chart-dirs: | ||
- charts | ||
helm-extra-args: "--timeout=5m" | ||
check-version-increment: false | ||
target-branch: master |
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,88 +1,36 @@ | ||
name: Release Charts | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
name: Build Release | ||
push: | ||
branches: | ||
- release-* | ||
|
||
jobs: | ||
release-assests: | ||
name: release kubectl-karmada | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
target: | ||
- karmadactl | ||
- kubectl-karmada | ||
os: | ||
- linux | ||
- darwin | ||
arch: | ||
- amd64 | ||
- arm64 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
- name: Making and packaging | ||
env: | ||
GOOS: ${{ matrix.os }} | ||
GOARCH: ${{ matrix.arch }} | ||
run: make release-${{ matrix.target }} | ||
- name: Making helm charts | ||
env: | ||
VERSION: ${{ github.ref_name }} | ||
run: make package-chart | ||
- name: Uploading assets... | ||
if: ${{ !env.ACT }} | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
_output/release/${{ matrix.target }}-${{ matrix.os }}-${{ matrix.arch }}.tgz | ||
_output/release/${{ matrix.target }}-${{ matrix.os }}-${{ matrix.arch }}.tgz.sha256 | ||
release-crds-assests: | ||
name: release crds | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Rename the crds directory | ||
run: | | ||
mv ./charts/karmada/_crds ./charts/karmada/crds | ||
- name: Tar the crds | ||
uses: a7ul/[email protected] | ||
with: | ||
command: c | ||
cwd: ./charts/karmada/ | ||
files: crds | ||
outPath: crds.tar.gz | ||
- name: Uploading crd assets... | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
crds.tar.gz | ||
release-charts: | ||
name: Release charts | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Making helm charts | ||
env: | ||
VERSION: ${{ github.ref_name }} | ||
run: make package-chart | ||
- name: Uploading assets... | ||
if: ${{ !env.ACT }} | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
_output/charts/karmada-chart-${{ github.ref_name }}.tgz | ||
_output/charts/karmada-chart-${{ github.ref_name }}.tgz.sha256 | ||
_output/charts/karmada-operator-chart-${{ github.ref_name }}.tgz | ||
_output/charts/karmada-operator-chart-${{ github.ref_name }}.tgz.sha256 | ||
update-krew-index: | ||
needs: release-assests | ||
name: Update krew-index | ||
runs-on: ubuntu-22.04 | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Update new version in krew-index | ||
uses: rajatjindal/[email protected] | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Install Helm | ||
uses: azure/setup-helm@v1 | ||
with: | ||
version: v3.7.0 | ||
|
||
- name: Add dependency chart repos | ||
run: | | ||
helm repo add bitnami https://charts.bitnami.com/bitnami | ||
helm repo update | ||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
CR_RELEASE_NAME_TEMPLATE: "v1.10.1-work-suspend" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.