Skip to content

Commit 52a42a5

Browse files
committed
zwischenstand
1 parent 75a468b commit 52a42a5

File tree

3 files changed

+38
-21
lines changed

3 files changed

+38
-21
lines changed

.github/workflows/build-helm-chart.yaml

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,48 +14,68 @@ jobs:
1414
runs-on: ubuntu-latest
1515
outputs:
1616
output: ${{ steps.tag.outputs.tag }}
17+
release_version: ${{ steps.tag.outputs.release_version }}
1718
steps:
1819
- name: Check out the repo
1920
uses: actions/checkout@v2
2021
with:
2122
ref: main
2223
fetch-depth: 0
23-
- id: tag
24+
- name: Set up awesome-ci
25+
run: |
26+
wget https://github.com/eksrvb/awesome-ci/releases/latest/download/awesome-ci
27+
chmod +x awesome-ci
28+
- name: set build Infos
29+
run: ./awesome-ci getBuildInfos
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
- name: export Infos
33+
id: tag
2434
shell: bash
2535
run: |
2636
echo "Tag: $(git describe --abbrev=0)"
2737
echo "::set-output name=tag::$(git describe --abbrev=0)"
38+
echo "::set-output name=release_version::$ACI_NEXT_VERSION"
2839
2940
build-helm-chart:
3041
runs-on: ubuntu-latest
3142
needs: generate_tag
3243
steps:
3344
- name: Check out the repo
3445
uses: actions/checkout@v2
46+
- name: Set up awesome-ci
47+
run: |
48+
wget https://github.com/eksrvb/awesome-ci/releases/latest/download/awesome-ci
49+
chmod +x awesome-ci
50+
3551
- name: Check out helm-charts
3652
uses: actions/checkout@v2
3753
with:
3854
repository: fullstack-devops/helm-charts
39-
ref: 'gh-pages'
4055
token: ${{ secrets.HELM_REPO_TOKEN }}
56+
ref: gh-pages
57+
persist-credentials: true
4158
path: helm-charts
59+
60+
- name: Helm Installation
61+
uses: azure/[email protected]
62+
with:
63+
version: v3.7.2
4264

43-
- name: Configure Git
44-
working-directory: helm-charts
65+
- name: Helm Package
66+
run: helm package ./helm --version "${{ needs.generate_tag.outputs.release_version }}" --app-version "${{ needs.generate_tag.outputs.release_version }}" -d out/
67+
68+
- name: Helm
69+
env:
70+
GITHUB_TOKEN: ${{ secrets.HELM_REPO_TOKEN }}
4571
run: |
4672
git config user.name "$GITHUB_ACTOR"
4773
git config user.email "[email protected]"
4874
49-
- name: Update chart application version
50-
run: |
51-
sed -i -e "s/appVersion:.*/appVersion: ${{ needs.generate_tag.outputs.output }}/g" helm/Chart.yaml
52-
53-
- name: Run chart-releaser
54-
uses: helm/[email protected]
55-
with:
56-
charts_dir: ./
57-
config: cr.yml
58-
charts_repo_url: https://fullstack-devops.github.io/helm-charts
59-
env:
60-
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
61-
HELM_REPO_TOKEN: "${{ secrets.HELM_REPO_TOKEN }}"
75+
helm repo index out/ --url https://github.com/fullstack-devops/helm-charts/releases/download/excalidraw-1.0.1/excalidraw-1.0.1.tgz --merge helm-charts/index.yaml
76+
77+
CHART_PACKAGE_NAME="my-chart-0.1.0+$(git rev-parse --short "$GITHUB_SHA").tgz"
78+
cd helm-chart-repository
79+
git add "$CHART_PACKAGE_NAME"
80+
git commit -m "$CHART_PACKAGE_NAME"
81+
git push origin main

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
######################################
1313
# CUSTOM
1414
######################################
15-
15+
out/
1616

1717
######################################
1818
# GENERIC

cr.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)