Skip to content

Commit

Permalink
Merge pull request #399 from percona/EVEREST-1513-everest-release
Browse files Browse the repository at this point in the history
Add workflow for releasing Everest chart
  • Loading branch information
mayankshah1607 authored Oct 29, 2024
2 parents 28bf9f2 + 67cefe1 commit 55da14b
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/everest-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Everest Chart Release
on:
workflow_dispatch:
inputs:
version:
description: "Everest version"
required: true
jobs:
release:
env:
VERSION: ${{ github.event.inputs.version }}
# Is set if the VERSION corresponds to an RC.
IS_RC: 0
runs-on: ubuntu-latest
steps:
- name: Set environment variables
run: |
if [[ ! $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "IS_RC=1" >> $GITHUB_ENV
fi
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: |
charts/everest
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Prepare RC
if: ${{ env.IS_RC == '1' }}
run: |
cd charts/everest
make release-dev
- name: Prepare release
if: ${{ env.IS_RC == '0' }}
run: |
cd charts/everest
make release
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0

- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 55da14b

Please sign in to comment.