.gitea/workflows/update-images.yaml を更新

This commit is contained in:
2025-12-05 01:34:34 +00:00
parent a4d6136c97
commit 9e673edd18

View File

@@ -57,10 +57,10 @@ jobs:
if [ "$NGINX_CURRENT" != "$NGINX_LATEST" ] || [ "$WP_CURRENT" != "$WP_LATEST" ]; then
echo "update_needed=true" >> $GITHUB_OUTPUT
echo "Check: Update is needed"
echo "Update is needed"
else
echo "update_needed=false" >> $GITHUB_OUTPUT
echo "Info: Already up to date"
echo "Already up to date"
fi
- name: Update values.yaml
@@ -69,17 +69,15 @@ jobs:
set -e
echo "Updating values.yaml..."
# Nginxタグ更新
NGINX_OLD="${{ steps.nginx.outputs.current }}"
NGINX_NEW="${{ steps.nginx.outputs.latest }}"
sed -i "s|tag: \"${NGINX_OLD}\"|tag: \"${NGINX_NEW}\"|g" values.yaml
# WordPressタグ更新
WP_OLD="${{ steps.wordpress.outputs.current }}"
WP_NEW="${{ steps.wordpress.outputs.latest }}"
sed -i "s|tag: \"${WP_OLD}\"|tag: \"${WP_NEW}\"|g" values.yaml
echo "Check: values.yaml updated"
echo "values.yaml updated"
git diff values.yaml
- name: Update Chart.yaml version