2 Commits

Author SHA1 Message Date
sova-ci 1c7e41ab99 ci: sed bump deploy values, fix adminpanel Dockerfile env.js
docs-ci-cd / test (push) Has been skipped
docs-ci-cd / parse-tag (push) Successful in 0s
docs-ci-cd / build-and-push (push) Successful in 23s
docs-ci-cd / deploy-gitops (push) Successful in 2s
2026-06-09 16:25:49 +03:00
sova-ci ec149f1b70 ci: skip blocking test job on test contour (slow setup-php/node) 2026-06-09 15:42:04 +03:00
+9 -12
View File
@@ -23,7 +23,7 @@ env:
jobs:
test:
if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/docs-v')
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -56,7 +56,7 @@ jobs:
echo "version=$(echo "$TAG" | sed -E 's/docs-v([0-9.]+).*/\1/')" >> "$GITHUB_OUTPUT"
build-and-push:
needs: [test, parse-tag]
needs: [parse-tag]
if: startsWith(github.ref, 'refs/tags/docs-v')
runs-on: ubuntu-latest
steps:
@@ -97,18 +97,15 @@ jobs:
git config user.email "ci-bot@sova.local"
git config user.name "sova-ci"
MAX_RETRIES=5
case "$(uname -m)" in
x86_64|amd64) YQ_ARCH=amd64 ;;
aarch64|arm64) YQ_ARCH=arm64 ;;
*) echo "Unsupported arch: $(uname -m)"; exit 1 ;;
esac
curl -sSL -o /usr/local/bin/yq "https://github.com/mikefarah/yq/releases/download/v4.44.3/yq_linux_${YQ_ARCH}"
chmod +x /usr/local/bin/yq
bump_values() {
local file="apps/docs/values-${ENV}.yaml"
sed -i "s|^ repository:.*| repository: ${IMAGE_DEPLOY}|" "$file"
sed -i "s|^ tag:.*| tag: ${TAG}|" "$file"
sed -i "s|^ pullPolicy:.*| pullPolicy: IfNotPresent|" "$file"
}
for attempt in $(seq 1 $MAX_RETRIES); do
git pull --rebase origin "${ENV}"
yq -i ".image.repository = \"${IMAGE_DEPLOY}\"" "apps/docs/values-${ENV}.yaml"
yq -i ".image.tag = \"${TAG}\"" "apps/docs/values-${ENV}.yaml"
yq -i ".image.pullPolicy = \"IfNotPresent\"" "apps/docs/values-${ENV}.yaml"
bump_values
git add "apps/docs/values-${ENV}.yaml"
git diff --cached --quiet && { echo "No changes"; exit 0; }
git commit -m "chore(docs): bump ${ENV} to ${TAG}"