feat(seo): discoverability + Schema.org + IndexNow + Trivy (#1)
All checks were successful
deploy / deploy (push) Successful in 3m7s
All checks were successful
deploy / deploy (push) Successful in 3m7s
This commit was merged in pull request #1.
This commit is contained in:
@@ -42,9 +42,35 @@ jobs:
|
||||
|
||||
cd "$DEPLOY_PATH"
|
||||
docker compose build
|
||||
|
||||
# Trivy scan локально собранного образа (HIGH+CRITICAL, не блокирует).
|
||||
# ghcr.io вместо docker.io — обход rate limit Docker Hub.
|
||||
echo "=== Trivy scan: anotherreflections-ru-v2:latest ==="
|
||||
docker run --rm \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v /tmp/trivy-cache:/root/.cache/ \
|
||||
ghcr.io/aquasecurity/trivy:latest image \
|
||||
--severity HIGH,CRITICAL \
|
||||
--no-progress \
|
||||
--exit-code 0 \
|
||||
--timeout 5m \
|
||||
anotherreflections-ru-v2:latest || true
|
||||
echo "=== Trivy scan done ==="
|
||||
|
||||
docker compose up -d
|
||||
sleep 5
|
||||
docker compose ps
|
||||
curl -fsS -o /dev/null -w "HEALTH HTTP %{http_code}\n" "$HEALTH_URL"
|
||||
docker image prune -af --filter "until=168h" >/dev/null 2>&1 || true
|
||||
REMOTE
|
||||
|
||||
- name: Checkout repo for IndexNow
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
|
||||
- name: Notify IndexNow (Yandex/Bing)
|
||||
run: npm run indexnow || true
|
||||
|
||||
Reference in New Issue
Block a user