Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f6980d92df | |||
| ea0cca53a6 | |||
| 1982218ab2 | |||
| 999f0ae02b | |||
| 07e55191f9 | |||
| 449d87c314 | |||
| 34c74db6f7 | |||
| 2404dd71fd | |||
| 3508c37d92 | |||
| dd6982a6ce |
@@ -248,7 +248,7 @@ jobs:
|
|||||||
echo "Release v${APP_VERSION} created with asset ${PACKAGE_FILE}"
|
echo "Release v${APP_VERSION} created with asset ${PACKAGE_FILE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Update Helm Repository Index
|
- name: Publish to Gitea Package Registry
|
||||||
if: steps.check_update.outputs.wp_updated == 'true'
|
if: steps.check_update.outputs.wp_updated == 'true'
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
@@ -256,46 +256,15 @@ jobs:
|
|||||||
CHART_NAME=$(grep '^name:' Chart.yaml | awk '{print $2}')
|
CHART_NAME=$(grep '^name:' Chart.yaml | awk '{print $2}')
|
||||||
PACKAGE_FILE="${CHART_NAME}-${APP_VERSION}.tgz"
|
PACKAGE_FILE="${CHART_NAME}-${APP_VERSION}.tgz"
|
||||||
|
|
||||||
echo "Preparing Helm repository update..."
|
echo "🚀 Publishing ${PACKAGE_FILE} to Gitea Package Registry..."
|
||||||
|
|
||||||
# パッケージファイルを一時ディレクトリに移動
|
curl --fail-with-body \
|
||||||
mkdir -p /tmp/helm-repo
|
-u "${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_TOKEN }}" \
|
||||||
cp "${PACKAGE_FILE}" /tmp/helm-repo/
|
-X POST \
|
||||||
|
--upload-file "${PACKAGE_FILE}" \
|
||||||
|
"https://git.cafepieters.com/api/packages/helmchart/helm/api/charts"
|
||||||
|
|
||||||
# gh-pagesブランチの処理
|
echo "✅ Chart published successfully to Gitea Package Registry"
|
||||||
if git ls-remote --heads origin gh-pages | grep gh-pages; then
|
|
||||||
echo "gh-pages branch exists, checking out..."
|
|
||||||
git fetch origin gh-pages
|
|
||||||
git checkout gh-pages
|
|
||||||
else
|
|
||||||
echo "Creating new gh-pages branch..."
|
|
||||||
git checkout --orphan gh-pages
|
|
||||||
git rm -rf . || true
|
|
||||||
echo "# Helm Repository" > README.md
|
|
||||||
git config user.name "Gitea Actions Bot"
|
|
||||||
git config user.email "actions@git.cafepieters.com"
|
|
||||||
git add README.md
|
|
||||||
git commit -m "Initialize gh-pages branch"
|
|
||||||
git push origin gh-pages
|
|
||||||
fi
|
|
||||||
|
|
||||||
# パッケージファイルをコピー
|
|
||||||
cp /tmp/helm-repo/"${PACKAGE_FILE}" .
|
|
||||||
|
|
||||||
# index.yamlを生成/更新
|
|
||||||
helm repo index . --url "https://git.cafepieters.com/${GITHUB_REPOSITORY}/raw/branch/gh-pages"
|
|
||||||
|
|
||||||
# コミットしてプッシュ
|
|
||||||
git config user.name "Gitea Actions Bot"
|
|
||||||
git config user.email "actions@git.cafepieters.com"
|
|
||||||
git add "${PACKAGE_FILE}" index.yaml
|
|
||||||
git commit -m "chore: add ${CHART_NAME} v${APP_VERSION}" || echo "No changes to commit"
|
|
||||||
git push origin gh-pages
|
|
||||||
|
|
||||||
echo "Helm repository updated successfully"
|
|
||||||
|
|
||||||
# mainブランチに戻る
|
|
||||||
git checkout main
|
|
||||||
|
|
||||||
- name: Summary
|
- name: Summary
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
+2
-2
@@ -2,8 +2,8 @@ apiVersion: v2
|
|||||||
name: wordpress-nginx
|
name: wordpress-nginx
|
||||||
description: WordPress with Nginx and PHP-FPM on Kubernetes
|
description: WordPress with Nginx and PHP-FPM on Kubernetes
|
||||||
type: application
|
type: application
|
||||||
version: 6.9.1
|
version: 7.0.0
|
||||||
appVersion: "6.9.1"
|
appVersion: "7.0.0"
|
||||||
keywords:
|
keywords:
|
||||||
- wordpress
|
- wordpress
|
||||||
- nginx
|
- nginx
|
||||||
|
|||||||
@@ -1,84 +1,6 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
entries:
|
entries:
|
||||||
wordpress-nginx:
|
wordpress-nginx:
|
||||||
- annotations:
|
|
||||||
category: CMS
|
|
||||||
licenses: Apache-2.0
|
|
||||||
apiVersion: v2
|
|
||||||
appVersion: 6.9.0
|
|
||||||
created: "2026-02-12T00:50:45.960195213Z"
|
|
||||||
description: WordPress with Nginx and PHP-FPM on Kubernetes
|
|
||||||
digest: 6a6f9d21ffff56dab9d0375cd03c4a9ba5f9ce2e06f048ff43cac6f2ee2f490e
|
|
||||||
home: https://wordpress.org/
|
|
||||||
icon: https://upload.wikimedia.org/wikipedia/commons/thumb/9/93/Wordpress_Blue_logo.png/250px-Wordpress_Blue_logo.png
|
|
||||||
keywords:
|
|
||||||
- wordpress
|
|
||||||
- nginx
|
|
||||||
- php-fpm
|
|
||||||
- cms
|
|
||||||
kubeVersion: '>=1.19.0-0'
|
|
||||||
maintainers:
|
|
||||||
- name: Pieter
|
|
||||||
url: https://git.cafepieters.com/helmchart/repo/
|
|
||||||
name: wordpress-nginx
|
|
||||||
sources:
|
|
||||||
- https://wordpress.org
|
|
||||||
type: application
|
|
||||||
urls:
|
|
||||||
- https://git.cafepieters.com/helmchart/wordpress/raw/branch/main/packages/wordpress-nginx-6.9.4.tgz
|
|
||||||
version: 6.9.4
|
|
||||||
- annotations:
|
|
||||||
category: CMS
|
|
||||||
licenses: Apache-2.0
|
|
||||||
apiVersion: v2
|
|
||||||
appVersion: 6.9.0
|
|
||||||
created: "2026-02-12T00:50:45.939096534Z"
|
|
||||||
description: WordPress with Nginx and PHP-FPM on Kubernetes
|
|
||||||
digest: ae8ec50b1ff2a0c4a546ce92b49efaa5a0ccc03f002f6d734c1ab23c09210021
|
|
||||||
home: https://wordpress.org/
|
|
||||||
icon: https://upload.wikimedia.org/wikipedia/commons/thumb/9/93/Wordpress_Blue_logo.png/250px-Wordpress_Blue_logo.png
|
|
||||||
keywords:
|
|
||||||
- wordpress
|
|
||||||
- nginx
|
|
||||||
- php-fpm
|
|
||||||
- cms
|
|
||||||
kubeVersion: '>=1.19.0-0'
|
|
||||||
maintainers:
|
|
||||||
- name: Pieter
|
|
||||||
url: https://git.cafepieters.com/helmchart/repo/
|
|
||||||
name: wordpress-nginx
|
|
||||||
sources:
|
|
||||||
- https://wordpress.org
|
|
||||||
type: application
|
|
||||||
urls:
|
|
||||||
- https://git.cafepieters.com/helmchart/wordpress/raw/branch/main/packages/wordpress-nginx-6.9.3.tgz
|
|
||||||
version: 6.9.3
|
|
||||||
- annotations:
|
|
||||||
category: CMS
|
|
||||||
licenses: Apache-2.0
|
|
||||||
apiVersion: v2
|
|
||||||
appVersion: 6.9.0
|
|
||||||
created: "2026-02-12T00:50:45.929251872Z"
|
|
||||||
description: WordPress with Nginx and PHP-FPM on Kubernetes
|
|
||||||
digest: a9518ec99c8a6abee3c7d1dfc31529bf308aeaa85f9e9197ba355baea062da92
|
|
||||||
home: https://wordpress.org/
|
|
||||||
icon: https://upload.wikimedia.org/wikipedia/commons/thumb/9/93/Wordpress_Blue_logo.png/250px-Wordpress_Blue_logo.png
|
|
||||||
keywords:
|
|
||||||
- wordpress
|
|
||||||
- nginx
|
|
||||||
- php-fpm
|
|
||||||
- cms
|
|
||||||
kubeVersion: '>=1.19.0-0'
|
|
||||||
maintainers:
|
|
||||||
- name: Pieter
|
|
||||||
url: https://git.cafepieters.com/helmchart/repo/
|
|
||||||
name: wordpress-nginx
|
|
||||||
sources:
|
|
||||||
- https://wordpress.org
|
|
||||||
type: application
|
|
||||||
urls:
|
|
||||||
- https://git.cafepieters.com/helmchart/wordpress/raw/branch/main/packages/wordpress-nginx-6.9.2.tgz
|
|
||||||
version: 6.9.2
|
|
||||||
- annotations:
|
- annotations:
|
||||||
category: CMS
|
category: CMS
|
||||||
licenses: Apache-2.0
|
licenses: Apache-2.0
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2
-2
@@ -5,12 +5,12 @@ image:
|
|||||||
nginx:
|
nginx:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: nginx
|
repository: nginx
|
||||||
tag: "1.29.5-alpine-perl"
|
tag: "1.31.1-alpine-perl"
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
wordpress:
|
wordpress:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: wordpress
|
repository: wordpress
|
||||||
tag: "6.9.1-php8.5-fpm-alpine"
|
tag: "7.0.0-php8.5-fpm-alpine"
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
# WordPress設定
|
# WordPress設定
|
||||||
|
|||||||
Reference in New Issue
Block a user