From 159e0e86e2a3e2410a8b799c73eb3ab3b406df2f Mon Sep 17 00:00:00 2001 From: Pranav Patil Date: Mon, 3 Aug 2026 12:31:38 +0500 Subject: [PATCH 1/2] feat: add helm-charts-release workflow and release-drafter config for ci-tools integration --- .github/release-drafter-config.yml | 50 ++++++++++++++++ .github/workflows/helm-charts-release.yaml | 67 ++++++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 .github/release-drafter-config.yml create mode 100644 .github/workflows/helm-charts-release.yaml diff --git a/.github/release-drafter-config.yml b/.github/release-drafter-config.yml new file mode 100644 index 0000000..3de46d0 --- /dev/null +++ b/.github/release-drafter-config.yml @@ -0,0 +1,50 @@ +name-template: '$RESOLVED_VERSION' +tag-template: '$RESOLVED_VERSION' + +categories: + - title: '💥 Breaking Changes' + labels: + - breaking-change + - BREAKING + - title: '💡 New Features' + labels: + - feature + - enhancement + - title: '🐞 Bug Fixes' + labels: + - bug + - fix + - bugfix + - title: '⚙️ Technical Debt' + labels: + - refactor + - title: '📝 Documentation' + labels: + - documentation + - doc + +change-template: "- (#$NUMBER) $TITLE by @$AUTHOR" + +no-changes-template: 'No significant changes' + +template: | + ## 🚀 Release + + ### What's Changed + $CHANGES + + --- + + **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION + +version-resolver: + major: + labels: + - major + minor: + labels: + - minor + patch: + labels: + - patch + default: patch diff --git a/.github/workflows/helm-charts-release.yaml b/.github/workflows/helm-charts-release.yaml new file mode 100644 index 0000000..2754335 --- /dev/null +++ b/.github/workflows/helm-charts-release.yaml @@ -0,0 +1,67 @@ +name: Helm Charts Release +on: + workflow_dispatch: + inputs: + release: + description: "Release version (e.g. v0.35.2)" + required: true + type: string + +permissions: + contents: write + packages: write + +run-name: ${{ github.repository }} Release ${{ inputs.release }} + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build-transfer-image: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to ghcr.io + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push sm-charts-transfer + uses: docker/build-push-action@v5 + with: + context: . + file: ci/docker-charts/Dockerfile + push: true + tags: ghcr.io/netcracker/sm-charts-transfer:${{ inputs.release }} + provenance: false + + github-release: + needs: [build-transfer-image] + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Create GitHub release + uses: netcracker/release-drafter@86f4276a3894b5af70480e826c32fe3648ac6a70 # v1.0.0 + with: + config-name: release-drafter-config.yml + publish: true + name: ${{ inputs.release }} + tag: ${{ inputs.release }} + version: ${{ inputs.release }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From e133f5aaef45130622d2f3cf974c408db571a094 Mon Sep 17 00:00:00 2001 From: Pranav Patil Date: Mon, 3 Aug 2026 18:34:55 +0500 Subject: [PATCH 2/2] update workflow --- .github/workflows/helm-charts-release.yaml | 30 ---------------------- 1 file changed, 30 deletions(-) diff --git a/.github/workflows/helm-charts-release.yaml b/.github/workflows/helm-charts-release.yaml index 2754335..6e6d15e 100644 --- a/.github/workflows/helm-charts-release.yaml +++ b/.github/workflows/helm-charts-release.yaml @@ -9,7 +9,6 @@ on: permissions: contents: write - packages: write run-name: ${{ github.repository }} Release ${{ inputs.release }} @@ -18,36 +17,7 @@ concurrency: cancel-in-progress: true jobs: - build-transfer-image: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Login to ghcr.io - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push sm-charts-transfer - uses: docker/build-push-action@v5 - with: - context: . - file: ci/docker-charts/Dockerfile - push: true - tags: ghcr.io/netcracker/sm-charts-transfer:${{ inputs.release }} - provenance: false - github-release: - needs: [build-transfer-image] runs-on: ubuntu-latest steps: - name: Checkout