-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
4 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 |
---|---|---|
|
@@ -11,7 +11,7 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
release: | ||
pre-release: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
|
@@ -66,15 +66,29 @@ jobs: | |
repository: ${{ github.repository }}/nr-oracle-service-init | ||
target: test | ||
tags: ${{ steps.tag.outputs.tag }} | ||
|
||
- name: Configure Git | ||
- name: Update Chart.yaml | ||
if: ${{ steps.tag.outputs.tag != '' }} | ||
run: | | ||
cd charts/nr-oracle-service | ||
sed -i "s/^appVersion:.*/appVersion: ${{ steps.tag.outputs.tag }}/g" Chart.yaml | ||
git add Chart.yaml | ||
git commit -m "Update appVersion to ${{ steps.tag.outputs.tag }}" | ||
git push origin main | ||
release: | ||
runs-on: ubuntu-22.04 | ||
needs: pre-release | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Run chart-releaser | ||
if: ${{ steps.tag.outputs.tag != '' }} | ||
uses: helm/[email protected] | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
|