Skip to content

Commit 99f2968

Browse files
thenav56tnagorra
authored andcommitted
chore: move helm and actions to new repositories
1 parent bfb558f commit 99f2968

File tree

18 files changed

+33
-644
lines changed

18 files changed

+33
-644
lines changed

.github/actions/prep/action.yml

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

.github/actions/publish-web-app-serve/action.yml

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

.github/workflows/docker-publish.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,30 @@ jobs:
1414

1515
- name: 🐳 Prepare Docker
1616
id: prep
17-
uses: ./.github/actions/prep
17+
env:
18+
REPO_NAME: ghcr.io/${{ github.repository }}
19+
shell: bash
20+
run: |
21+
# If it's a pull request ref, fallback to 'pr-<number>' format
22+
if [[ "$GITHUB_REF_NAME" == *"pull/"* ]]; then
23+
PR_NUMBER=$(echo "$GITHUB_REF_NAME" | grep -oP 'pull/\K[0-9]+')
24+
TAG="pr-${PR_NUMBER}"
25+
else
26+
TAG=$(echo "$GITHUB_REF_NAME" | \
27+
sed 's|:|-|g' | \
28+
tr '[:upper:]' '[:lower:]' | \
29+
sed 's/[^a-z0-9_.-]/-/g' | \
30+
cut -c1-100 | \
31+
sed 's/^[.-]*//' | \
32+
sed 's/[-.]*$//')
33+
fi
34+
35+
REPO_NAME=$(echo $REPO_NAME | tr '[:upper:]' '[:lower:]')
36+
37+
# Docker
38+
echo "docker_image_name=${REPO_NAME}" >> $GITHUB_OUTPUT
39+
echo "docker_image_tag=${TAG}" >> $GITHUB_OUTPUT
40+
echo "docker_image=${REPO_NAME}:${TAG}" >> $GITHUB_OUTPUT
1841
1942
- name: Login to GitHub Container Registry
2043
if: github.event_name != 'pull_request'

.github/workflows/helm-publish.yml

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

.github/workflows/release.yml

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,17 @@ jobs:
1616
name: CI
1717
uses: ./.github/workflows/docker-publish.yml
1818

19-
helm-publish:
20-
name: CI
21-
uses: ./.github/workflows/helm-publish.yml
22-
2319
generate-release:
2420
name: Generate release
2521
runs-on: ubuntu-22.04
2622
needs:
27-
- helm-publish
2823
- docker-publish
2924

3025
steps:
3126
- uses: actions/checkout@v4
3227
with:
3328
fetch-depth: 0
3429

35-
- name: Prepare
36-
id: prep
37-
uses: ./.github/actions/prep
38-
3930
- name: Set the release version
4031
id: release
4132
shell: bash
@@ -59,36 +50,11 @@ jobs:
5950
config: cliff.toml
6051
args: -vv --latest --no-exec --github-repo ${{ github.repository }} --strip all
6152

62-
- name: Changelog content pre-processing
63-
id: changelog-pre-process
64-
env:
65-
HELM_REPO_URL: "${{ steps.prep.outputs.helm_oci_repo }}"
66-
HELM_CHART: "${{ steps.prep.outputs.helm_chart }}"
67-
HELM_TARGET_REVISION: "${{ steps.prep.outputs.helm_target_revision }}"
68-
DOCKER_IMAGE: "${{ steps.prep.outputs.docker_image }}"
69-
shell: bash
70-
run: |
71-
EXTENDEND_CHANGELOG=/tmp/extendend_changelog.md
72-
echo "# Changelog" >> $EXTENDEND_CHANGELOG
73-
echo "" >> $EXTENDEND_CHANGELOG
74-
75-
echo "> [!Important]" >> $EXTENDEND_CHANGELOG
76-
echo "> Helm Repo URL: **$HELM_REPO_URL**" >> $EXTENDEND_CHANGELOG
77-
echo "> Helm Chart: **$HELM_CHART**" >> $EXTENDEND_CHANGELOG
78-
echo "> Helm Target Revision: **$HELM_TARGET_REVISION**" >> $EXTENDEND_CHANGELOG
79-
echo "> Docker image: **$DOCKER_IMAGE**" >> $EXTENDEND_CHANGELOG
80-
81-
echo "${{ steps.git-cliff.outputs.content }}" >> $EXTENDEND_CHANGELOG
82-
83-
echo "extended_changelog_path=${EXTENDEND_CHANGELOG}" >> $GITHUB_OUTPUT
84-
cat $EXTENDEND_CHANGELOG >> $GITHUB_STEP_SUMMARY
85-
8653
- name: Create Github Release
8754
uses: softprops/action-gh-release@v2
8855
if: github.ref_type == 'tag'
8956
with:
9057
token: ${{ secrets.GITHUB_TOKEN }}
9158
name: "v${{ steps.release.outputs.release_version }}"
9259
prerelease: ${{ steps.release.outputs.is_prerelease }}
93-
body: ${{ steps.changelog-pre-process.outputs.extended_changelog }}
94-
body_path: ${{ steps.changelog-pre-process.outputs.extended_changelog_path }}
60+
body: ${{ steps.git-cliff.outputs.content }}

helm/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

helm/.helmignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

helm/Chart.yaml

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

helm/linter_values.yaml

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

0 commit comments

Comments
 (0)