Skip to content

Commit

Permalink
[artemiscloud-operator-crds] update to version 1.2.7
Browse files Browse the repository at this point in the history
Signed-off-by: Tiago Bueno <[email protected]>
  • Loading branch information
tlbueno committed Nov 18, 2024
1 parent 27da3f9 commit 583dbb6
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 29 deletions.
3 changes: 1 addition & 2 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

---
version: 2
updates:
- package-ecosystem: "github-actions"
Expand All @@ -13,4 +13,3 @@ updates:
- "tlbueno"
reviewers:
- "tlbueno"

38 changes: 21 additions & 17 deletions .github/workflows/release.yaml
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:
Expand All @@ -9,10 +11,8 @@ on:
jobs:
release:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- id: get_branch
name: Get Branch Name
Expand All @@ -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\"}"
24 changes: 14 additions & 10 deletions charts/artemiscloud-operator-crds/Chart.yaml
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"

0 comments on commit 583dbb6

Please sign in to comment.