Skip to content

Commit

Permalink
publish chart release v1.10.1-work-suspend
Browse files Browse the repository at this point in the history
  • Loading branch information
a7i committed Jun 20, 2024
1 parent 1e1db86 commit 7cbe4b6
Show file tree
Hide file tree
Showing 19 changed files with 40 additions and 2,445 deletions.
5 changes: 5 additions & 0 deletions .github/ci/ct.yaml
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
118 changes: 33 additions & 85 deletions .github/workflows/release.yml
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"
21 changes: 0 additions & 21 deletions charts/karmada-operator/.helmignore

This file was deleted.

6 changes: 0 additions & 6 deletions charts/karmada-operator/Chart.lock

This file was deleted.

40 changes: 0 additions & 40 deletions charts/karmada-operator/Chart.yaml

This file was deleted.

80 changes: 0 additions & 80 deletions charts/karmada-operator/README.md

This file was deleted.

Loading

0 comments on commit 7cbe4b6

Please sign in to comment.