.gitea/workflows/update-images.yaml を更新
This commit is contained in:
@@ -57,10 +57,10 @@ jobs:
|
|||||||
|
|
||||||
if [ "$NGINX_CURRENT" != "$NGINX_LATEST" ] || [ "$WP_CURRENT" != "$WP_LATEST" ]; then
|
if [ "$NGINX_CURRENT" != "$NGINX_LATEST" ] || [ "$WP_CURRENT" != "$WP_LATEST" ]; then
|
||||||
echo "update_needed=true" >> $GITHUB_OUTPUT
|
echo "update_needed=true" >> $GITHUB_OUTPUT
|
||||||
echo "Check: Update is needed"
|
echo "Update is needed"
|
||||||
else
|
else
|
||||||
echo "update_needed=false" >> $GITHUB_OUTPUT
|
echo "update_needed=false" >> $GITHUB_OUTPUT
|
||||||
echo "Info: Already up to date"
|
echo "Already up to date"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Update values.yaml
|
- name: Update values.yaml
|
||||||
@@ -69,17 +69,15 @@ jobs:
|
|||||||
set -e
|
set -e
|
||||||
echo "Updating values.yaml..."
|
echo "Updating values.yaml..."
|
||||||
|
|
||||||
# Nginxタグ更新
|
|
||||||
NGINX_OLD="${{ steps.nginx.outputs.current }}"
|
NGINX_OLD="${{ steps.nginx.outputs.current }}"
|
||||||
NGINX_NEW="${{ steps.nginx.outputs.latest }}"
|
NGINX_NEW="${{ steps.nginx.outputs.latest }}"
|
||||||
sed -i "s|tag: \"${NGINX_OLD}\"|tag: \"${NGINX_NEW}\"|g" values.yaml
|
sed -i "s|tag: \"${NGINX_OLD}\"|tag: \"${NGINX_NEW}\"|g" values.yaml
|
||||||
|
|
||||||
# WordPressタグ更新
|
|
||||||
WP_OLD="${{ steps.wordpress.outputs.current }}"
|
WP_OLD="${{ steps.wordpress.outputs.current }}"
|
||||||
WP_NEW="${{ steps.wordpress.outputs.latest }}"
|
WP_NEW="${{ steps.wordpress.outputs.latest }}"
|
||||||
sed -i "s|tag: \"${WP_OLD}\"|tag: \"${WP_NEW}\"|g" values.yaml
|
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
|
git diff values.yaml
|
||||||
|
|
||||||
- name: Update Chart.yaml version
|
- name: Update Chart.yaml version
|
||||||
|
|||||||
Reference in New Issue
Block a user