Skip to content

Commit

Permalink
build: add cron for dependecy chart updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joshiste committed Jan 29, 2024
1 parent af52921 commit c84112f
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/helm/repositories.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
apiVersion: v1
repositories:
- name: steadybit-extension-aws
url: https://steadybit.github.io/extension-aws
- name: steadybit-extension-azure
url: https://steadybit.github.io/extension-azure
- name: steadybit-extension-container
url: https://steadybit.github.io/extension-container
- name: steadybit-extension-datadog
url: https://steadybit.github.io/extension-datadog
- name: steadybit-extension-dynatrace
url: https://steadybit.github.io/extension-dynatrace
- name: steadybit-extension-gatling
url: https://steadybit.github.io/extension-gatling
- name: steadybit-extension-gcp
url: https://steadybit.github.io/extension-gcp
- name: steadybit-extension-host
url: https://steadybit.github.io/extension-host
- name: steadybit-extension-http
url: https://steadybit.github.io/extension-http
- name: steadybit-extension-instana
url: https://steadybit.github.io/extension-instana
- name: steadybit-extension-istio
url: https://steadybit.github.io/extension-istio
- name: steadybit-extension-jmeter
url: https://steadybit.github.io/extension-jmeter
- name: steadybit-extension-jvm
url: https://steadybit.github.io/extension-jvm
- name: steadybit-extension-k6
url: https://steadybit.github.io/extension-k6
- name: steadybit-extension-kong
url: https://steadybit.github.io/extension-kong
- name: steadybit-extension-kubernetes
url: https://steadybit.github.io/extension-kubernetes
- name: steadybit-extension-loadtest
url: https://steadybit.github.io/extension-loadtest
- name: steadybit-extension-newrelic
url: https://steadybit.github.io/extension-newrelic
- name: steadybit-extension-postman
url: https://steadybit.github.io/extension-postman
- name: steadybit-extension-prometheus
url: https://steadybit.github.io/extension-prometheus
- name: steadybit-extension-stackstate
url: https://steadybit.github.io/extension-stackstate
- name: postgresql
url: https://charts.bitnami.com/bitnami
49 changes: 49 additions & 0 deletions .github/workflows/update-outpost-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Update steadybit-outpost dependencies
on:
workflow_dispatch: {}
schedule:
- cron: "0 8 * * 1"

env:
HELM_REPOSITORY_CONFIG: ${{ github.workspace }}/.github/helm/repositories.yaml

jobs:
update-outpost-dependencies:
name: Update steadybit-outpost dependencies
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: write
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.GH_APP_STEADYBIT_APP_ID }}
private-key: ${{ secrets.GH_APP_STEADYBIT_PRIVATE_KEY }}

- uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
token: ${{ steps.app-token.outputs.token }}

- name: Install Helm
uses: azure/setup-helm@v3
with:
version: v3.13.3

# this commit will effectively cause another run of the workflow which then actually performs the helm chart release
- run: |
cd charts/steadybit-outpost
helm dependency update
if git diff --quiet Chart.lock; then
echo "No changes in dependencies"
exit 0
fi
npm install -g semver
make chart-bump-version CHART="steadybit-outpost"
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git commit -am "chore: update helm chart dependencies"
git push

0 comments on commit c84112f

Please sign in to comment.