Skip to content

Commit

Permalink
Setup autoupgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrychu committed Jun 13, 2022
1 parent 4792450 commit f6f12f2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
CONTAINER_REGISTRY: szymonrychu
CENTRAL_REPOSITORY: szymonrychu/helmfile-cluster

jobs:
release:
Expand Down Expand Up @@ -89,6 +90,23 @@ jobs:
git commit -m "Release ${CHART_NAME} ${CHART_VERSION}"
git push origin ${CHART_GIT_BRANCH}
- name: Refresh central repo
run: |
set -e
git clone https://x-access-token:${BOT_TOKEN}@github.com/${CENTRAL_REPOSITORY}.git /tmp/central-repo
cd /tmp/central-repo
yq e ".releases[] | select(.name == \"code-server\") | .version = \"${CHART_VERSION}\"" helmfiles/coding/helmfile.yaml
git config --global user.email "${BOT_EMAIL}"
git config --global user.name "${BOT_USERNAME}"
git add helmfiles/coding/helmfile.yaml
git commit -m "'${CHART_NAME}' release 'code-server' update to '${CHART_VERSION}'"
git push origin master
- name: Create GH Release
uses: notlmn/release-with-changelog@v3
with:
Expand Down

0 comments on commit f6f12f2

Please sign in to comment.