Skip to content

Commit

Permalink
ci: rm stage
Browse files Browse the repository at this point in the history
  • Loading branch information
aagumin committed Sep 16, 2024
1 parent 1586dfa commit 1832bff
Showing 1 changed file with 2 additions and 31 deletions.
33 changes: 2 additions & 31 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,35 +26,6 @@ jobs:
with:
fetch-depth: 0

- name: Check whether version matches semver pattern
run: |
VERSION=${{ env.RELEASE_VERSION }}
if [[ ${VERSION} =~ ${{ env.SEMVER_PATTERN }} ]]; then
echo "Version '${VERSION}' matches semver pattern."
else
echo "Version '${VERSION}' does not match semver pattern."
exit 1
fi
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Check whether chart version and appVersion matches version
run: |
VERSION=${{ env.RELEASE_VERSION }}
CHART_VERSION=$(cat charts/spark-connect/Chart.yaml | grep version | awk '{print $2}')
CHART_APP_VERSION=$(cat charts/spark-connect/Chart.yaml | grep appVersion | awk '{print $2}')
if [[ ${CHART_VERSION} == ${VERSION} ]]; then
echo "Chart version '${CHART_VERSION}' matches version '${VERSION}'."
else
echo "Chart version '${CHART_VERSION}' does not match version '${VERSION}'."
exit 1
fi
if [[ ${CHART_APP_VERSION} == ${VERSION} ]]; then
echo "Chart appVersion '${CHART_APP_VERSION}' matches version '${VERSION}'."
else
echo "Chart appVersion '${CHART_APP_VERSION}' does not match version '${VERSION}'."
exit 1
fi
- name: Check if tag exists
run: |
git fetch --tags
Expand Down Expand Up @@ -159,7 +130,7 @@ jobs:
- name: Package Helm charts
run: |
for chart in $(ls charts); do
helm package charts/${chart}
helm package charts/${chart} --version ${RELEASE_VERSION} --app-version ${RELEASE_VERSION}
done
- name: Upload charts to GHCR
Expand Down Expand Up @@ -191,7 +162,7 @@ jobs:
git add index.yaml
git commit -s -m "Add index for Spark connect chart ${VERSION}" || exit 0
git push

- name: Release
id: release
Expand Down

0 comments on commit 1832bff

Please sign in to comment.