forked from jenkins-infra/helm-charts
-
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.
Merge pull request #1 from lemeurherve/issue4-check-chart-versions-bumps
Issue4 check chart versions bumps
- Loading branch information
Showing
74 changed files
with
604 additions
and
647 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Check if modified chart versions have been bumped | ||
on: | ||
push: null | ||
pull_request: null | ||
jobs: | ||
bump: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- id: list_modified_folders | ||
name: List modified folders | ||
if: github.ref != 'refs/heads/main' | ||
run: | | ||
# Get the list of modified files and folders | ||
git diff --name-only ${{ github.event.before }} ${{ github.sha }} > changes.txt | ||
# Extract the unique folder paths | ||
awk -F/ '{print $1}' changes.txt | sort --unique > modified_folders.txt | ||
# Store the modified folders as a step output | ||
echo "::set-output name=modified_folders::$(cat modified_folders.txt)" | ||
- id: check-bump | ||
name: Check if every modified chart version has been bumped | ||
if: github.ref != 'refs/heads/main' | ||
run: | | ||
# Read the modified folders from the previous step's output | ||
IFS=$'\n' read -d '' -r -a folders <<< "${{ steps.list_modified_folders.outputs.modified_folders }}" | ||
for folder in "${folders[@]}"; do | ||
MAIN_CHART_VERSION=$(git show origin:charts/"${folder}"/Chart.yaml | grep "^version:") | ||
PR_CHART_VERSION=$(git show ${{ github.event.before }}:charts/"${folder}"/Chart.yaml | grep "^version:") | ||
if [ "$MAIN_CHART_VERSION" == "$PR_CHART_VERSION" ]; then | ||
echo "ERROR: the version of the '${folder}' chart hasn't been bumped." | ||
exit 1 | ||
fi | ||
echo "The version of the '${folder}' chart has been bumped." | ||
} |
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,15 +1,12 @@ | ||
name: Release Charts | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'charts/**' | ||
|
||
# Only allow 1 release at a time (avoid concurent deployment to gh-pages) | ||
concurrency: "release-chart" | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
@@ -18,16 +15,13 @@ jobs: | |
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: Install Helm | ||
uses: azure/setup-helm@v3 | ||
|
||
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3 | ||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
uses: helm/chart-releaser-action@be16258da8010256c6e82849661221415f031968 # v1.5.0 | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
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
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
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,21 +1,20 @@ | ||
# Default values for accounts. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
replicaCount: 1 | ||
image: | ||
repository: jenkinsciinfra/account-app | ||
tag: 0.2.38 | ||
repository: jenkinsciinfra/account-app | ||
tag: 0.4.29 | ||
imagePullSecrets: [] | ||
nameOverride: "" | ||
fullnameOverride: "" | ||
service: | ||
type: ClusterIP | ||
port: 8080 | ||
type: ClusterIP | ||
port: 8080 | ||
# Please define ingress settings into environment variable | ||
ingress: | ||
enabled: true | ||
className: "" | ||
enabled: true | ||
className: "" | ||
# annotations: | ||
# "cert-manager.io/cluster-issuer": "letsencrypt-prod" | ||
# "nginx.ingress.kubernetes.io/proxy-body-size": "500m" | ||
|
@@ -29,9 +28,7 @@ ingress: | |
# - secretName: accounts-tls | ||
# hosts: | ||
# - accounts.jenkins.io | ||
|
||
resources: | ||
# We usually recommend not to specify default resources and to leave this as a conscious | ||
resources: # We usually recommend not to specify default resources and to leave this as a conscious | ||
# choice for the user. This also increases chances charts run on environments with little | ||
# resources, such as Minikube. If you do want to specify resources, uncomment the following | ||
# lines, adjust them as necessary, and remove the curly braces after 'resources:'. | ||
|
@@ -45,24 +42,26 @@ nodeSelector: {} | |
tolerations: [] | ||
affinity: {} | ||
ldap: | ||
url: ldaps://ldap.jenkins.io:636/ | ||
managerDn: cn=admin,dc=jenkins-ci,dc=org | ||
newUserBaseDn: ou=people,dc=jenkins-ci,dc=org | ||
password: | ||
url: ldaps://ldap.jenkins.io:636/ | ||
managerDn: cn=admin,dc=jenkins-ci,dc=org | ||
newUserBaseDn: ou=people,dc=jenkins-ci,dc=org | ||
password: null | ||
jira: | ||
username: accountapp | ||
password: | ||
url: https://issues.jenkins.io/ | ||
username: accountapp | ||
password: null | ||
url: https://issues.jenkins.io/ | ||
seats: 2 | ||
seniority: 12 | ||
smtp: | ||
auth: true | ||
server: smtp.sendgrid.net | ||
user: | ||
password: | ||
auth: true | ||
server: smtp.sendgrid.net | ||
sender: [email protected] | ||
port: 587 | ||
user: null | ||
password: null | ||
appUrl: https://accounts.jenkins.io | ||
election: | ||
open: 1970-01-01 | ||
close: 1970-01-02 | ||
logDir: /var/log/accountapp/elections | ||
candidates: bob,alice | ||
open: 1970-01-01 | ||
close: 1970-01-02 | ||
logDir: /var/log/accountapp/elections | ||
candidates: bob,alice |
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.