Release charts #646
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
name: Release charts | |
on: | |
# push: | |
# branches: | |
# - master | |
# paths: | |
# - 'charts/**' | |
schedule: | |
# every friday at 4 o'clock | |
- cron: '0 16 * * 5' | |
workflow_dispatch: | |
jobs: | |
bump-versions: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Bump Keycloak | |
uses: ./.github/actions/bumpVersionAction | |
with: | |
chart: keycloak | |
- name: Bump Keycloak.X | |
uses: ./.github/actions/bumpVersionAction | |
with: | |
chart: keycloakx | |
- name: Bump Mailhog | |
uses: ./.github/actions/bumpVersionAction | |
with: | |
chart: mailhog | |
- name: Push Results | |
id: pushResults | |
run: | | |
if git merge-base --is-ancestor HEAD @{u} ; then | |
echo "publish=false" >> $GITHUB_OUTPUT | |
echo "No push necesarry" | |
else | |
echo "Version bumps happened. Pushing now..." | |
git push | |
echo "publish=true" >> $GITHUB_OUTPUT | |
fi | |
outputs: | |
publish: ${{ steps.pushResults.outputs.publish }} | |
upload: | |
runs-on: ubuntu-latest | |
needs: | |
- bump-versions | |
# if: needs.bump-versions.outputs.publish == 'true' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
git pull | |
- name: Install Helm | |
uses: azure/setup-helm@v1 | |
with: | |
version: v3.5.1 | |
- name: Add dependency chart repos | |
run: | | |
helm repo add bitnami https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami | |
- name: Release charts | |
uses: helm/[email protected] | |
with: | |
charts_dir: charts | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |