2021-07-01 09:14:51 +00:00
|
|
|
name: "Apps: Release"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
tags-ignore:
|
|
|
|
- '**'
|
|
|
|
|
|
|
|
jobs:
|
2021-09-07 18:37:52 +00:00
|
|
|
release:
|
2021-07-01 09:14:51 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-09-07 18:37:52 +00:00
|
|
|
concurrency: gitpush
|
2021-07-01 09:14:51 +00:00
|
|
|
container:
|
2021-09-07 11:36:35 +00:00
|
|
|
image: ghcr.io/truecharts/truecharts-release:v1.0.0
|
2021-07-01 09:14:51 +00:00
|
|
|
steps:
|
2021-08-17 12:10:04 +00:00
|
|
|
- name: Cache helm repo cache
|
|
|
|
id: cache
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
key: helmrepocache-${{ github.sha }}
|
|
|
|
path: |
|
|
|
|
~/.cache/helm/repository
|
|
|
|
~/.config/helm/repositories.yaml
|
|
|
|
|
2021-09-07 18:37:52 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
name: Checkout
|
2021-07-01 09:14:51 +00:00
|
|
|
with:
|
2021-09-07 18:37:52 +00:00
|
|
|
fetch-depth: 100
|
2021-09-07 18:48:47 +00:00
|
|
|
token: ${{ secrets.BOT_TOKEN }}
|
2021-09-07 10:06:07 +00:00
|
|
|
|
2021-09-07 10:11:16 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
repository: truecharts/catalog
|
2021-09-07 18:48:47 +00:00
|
|
|
token: ${{ secrets.BOT_TOKEN }}
|
2021-09-07 10:11:16 +00:00
|
|
|
path: catalog
|
|
|
|
|
2021-07-01 09:14:51 +00:00
|
|
|
- name: Install Helm
|
|
|
|
uses: azure/setup-helm@v1
|
|
|
|
with:
|
|
|
|
version: v3.5.3
|
2021-08-17 12:16:30 +00:00
|
|
|
|
2021-09-07 18:37:52 +00:00
|
|
|
- name: build-and-run
|
2021-09-07 12:09:49 +00:00
|
|
|
run: |
|
2021-09-07 18:50:37 +00:00
|
|
|
tools/build-release.sh -p --config .github/cr.yaml
|
2021-09-07 18:48:47 +00:00
|
|
|
env:
|
|
|
|
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-09-07 12:09:49 +00:00
|
|
|
|
2021-09-07 18:37:52 +00:00
|
|
|
- name: Commit and Push new Helm Charts and docs
|
2021-08-17 12:16:30 +00:00
|
|
|
run: |
|
2021-09-07 18:37:52 +00:00
|
|
|
git config user.name "TrueCharts-Bot"
|
|
|
|
git config user.email "bot@truecharts.org"
|
|
|
|
git add --all
|
|
|
|
git commit -sm "Commit released Helm Chart and docs for TrueCharts" || exit 0
|
2021-09-07 10:06:07 +00:00
|
|
|
|
2021-07-01 09:14:51 +00:00
|
|
|
- name: Commit and Push new App releases
|
|
|
|
run: |
|
|
|
|
cd catalog
|
|
|
|
git config user.name "TrueCharts-Bot"
|
|
|
|
git config user.email "bot@truecharts.org"
|
|
|
|
git add --all
|
|
|
|
git commit -sm "Commit new App releases for TrueCharts" || exit 0
|
|
|
|
git push
|