Use gitea.repository variable for dynamic image repository paths
Some checks failed
Helm Chart Release / release-helm (push) Failing after 9s
Build and Deploy / build-web (push) Successful in 35s
Build and Deploy / build-api (push) Successful in 34s
Build and Deploy / build-helm (push) Failing after 7s

- Updated values.yaml to use gitea.repository placeholder
- Modified build.yml workflow to replace repository path dynamically
- Modified helm-release.yml workflow to replace repository path
- This allows the Helm chart to work with any Gitea repository structure
- Image paths are now built as: registry/gitea.repository/component
This commit is contained in:
d.viti
2025-10-03 02:23:32 +02:00
parent cf2b786738
commit 99fd37bfd8
3 changed files with 6 additions and 4 deletions

View File

@@ -109,8 +109,9 @@ jobs:
# Get version from Chart.yaml
CHART_VERSION=$(grep '^version:' helm/api7ee/Chart.yaml | awk '{print $2}')
# Update image registry in values.yaml to match Gitea registry
# Update image registry and repository in values.yaml to match Gitea
sed -i "s|registry: gitea.server_url|registry: ${{ gitea.server_url }}|g" helm/api7ee/values.yaml
sed -i "s|repository: gitea.repository/|repository: ${{ gitea.repository }}/|g" helm/api7ee/values.yaml
# Package the chart
helm package helm/api7ee/ --version ${CHART_VERSION}