This commit is contained in:
samsep101
2026-01-05 14:24:13 +05:00
commit 92a1846189
5 changed files with 69 additions and 0 deletions

16
update-image.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Скрипт для обновления тега образа в KubeVela Application
IMAGE_TAG=$1
APP_FILE="vela-apps/1-simple/static-site.yaml"
if [ -z "$IMAGE_TAG" ]; then
echo "Usage: $0 <image-tag>"
echo "Example: $0 v1.2.3"
exit 1
fi
# Обновляем тег образа
sed -i "s|image:.*drone/test:.*|image: harbor.apps.kopikopi.com.ru/drone/test:${IMAGE_TAG}|g" $APP_FILE
echo "Updated $APP_FILE with tag: $IMAGE_TAG"
echo "Don't forget to commit and push!"