bun init
This commit is contained in:
16
update-image.sh
Executable file
16
update-image.sh
Executable 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!"
|
||||
Reference in New Issue
Block a user