-
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.
[artemiscloud-operator-crds] update to version 1.2.7
Signed-off-by: Tiago Bueno <[email protected]>
- Loading branch information
Showing
3 changed files
with
36 additions
and
29 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
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
--- | ||
name: Release Charts | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
workflow_dispatch: | ||
push: | ||
|
@@ -9,10 +11,8 @@ on: | |
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- id: get_branch | ||
name: Get Branch Name | ||
|
@@ -22,51 +22,55 @@ jobs: | |
else | ||
echo "BRANCH_NAME=${{ inputs.branch }}" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Checkout specific branch (if push or input provided) | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ steps.get_branch.outputs.BRANCH_NAME }} | ||
ref: ${{ env.BRANCH_NAME }} | ||
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@v4 | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- name: Add repositories | ||
run: | | ||
helm repo add tlbueno https://tlbueno.github.io/helm-charts | ||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
with: | ||
skip_existing: true | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- name: Update release notes | ||
run: | | ||
set -x -e -o pipefail | ||
TAG=${${{ steps.get_branch.outputs.BRANCH_NAME }}#releases/}" | ||
RELEASE_DATA=$(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/repos/${{ github.repository }}/releases/tags/${TAG}") | ||
REPO_URL="https://api.github.com/repos/${{ github.repository }}" | ||
TAG="${${{ env.BRANCH_NAME }}#releases/}" | ||
RELEASE_DATA=$(curl -L -H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
"${REPO_URL}/releases/tags/${TAG}") | ||
CURRENT_NOTES=$(echo "$RELEASE_DATA" | jq -r '.body') | ||
RELEASE_ID=$(echo "$RELEASE_DATA" | jq -r '.id') | ||
AUTO_NOTES=$(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" -X POST https://api.github.com/repos/${{ github.repository }}/releases/generate-notes \ | ||
AUTO_NOTES=$(curl -L -H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
-X POST ${REPO_URL}/releases/generate-notes \ | ||
-d "{\"tag_name\": \"${TAG}\"}" | jq -r '.body') | ||
COMBINED_NOTES="${CURRENT_NOTES}\n\n${AUTO_NOTES}" | ||
curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" X PATCH "https://api.github.com/repos/${{ github.repository }}/releases/$RELEASE_ID" \ | ||
curl -L -H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
-X PATCH "${REPO_URL}/releases/$RELEASE_ID" \ | ||
-d "{\"body\": \"$COMBINED_NOTES\"}" | ||
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 |
---|---|---|
@@ -1,27 +1,31 @@ | ||
--- | ||
apiVersion: v2 | ||
name: artemiscloud-operator-crds | ||
description: A Helm chart to install ArtemisCloud Operator CRDs | ||
|
||
# A chart can be either an 'application' or a 'library' chart. | ||
# | ||
# Application charts are a collection of templates that can be packaged into versioned archives | ||
# to be deployed. | ||
# Application charts are a collection of templates that can be packaged into | ||
# versioned archives to be deployed. | ||
# | ||
# Library charts provide useful utilities or functions for the chart developer. They're included as | ||
# a dependency of application charts to inject those utilities and functions into the rendering | ||
# pipeline. Library charts do not define any templates and therefore cannot be deployed. | ||
# Library charts provide useful utilities or functions for the chart developer. | ||
# They're included as a dependency of application charts to inject those | ||
# utilities and functions into the rendering pipeline. Library charts do not | ||
# define any templates and therefore cannot be deployed. | ||
type: application | ||
|
||
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
# This is the chart version. This version number should be incremented each | ||
# time you make changes to the chart and its templates, including the app | ||
# version. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: 1.2.6 | ||
version: 1.2.7 | ||
|
||
######################################################### | ||
### ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ### | ||
### ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ### | ||
### ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ### | ||
######################################################### | ||
# The app version needs to in match with the operator version where the CRDs | ||
# where consumed from because the artemiscloud-operator chart depends on this chart | ||
appVersion: "1.2.6" | ||
# where consumed from because the artemiscloud-operator chart depends on this | ||
# chart | ||
appVersion: "1.2.7" |