Use pinned ECR PostgreSQL image for Gitea CI
Staging Backend Quality Gate / validate (pull_request) Has been cancelled
Staging Backend Quality Gate / publish (pull_request) Has been cancelled

This commit is contained in:
Jesse_Chen
2026-08-05 14:12:25 +08:00
parent 91a4da96c9
commit 4c4b7751cc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ jobs:
- name: Preload PostgreSQL integration image
env:
POSTGRES_TEST_SOURCE_IMAGE: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/postgres:17-alpine
POSTGRES_TEST_SOURCE_IMAGE: public.ecr.aws/docker/library/postgres:17-alpine@sha256:742f40ea20b9ff2ff31db5458d127452988a2164df9e17441e191f3b72252193
POSTGRES_TEST_IMAGE: postgres:17-alpine
run: |
set -euo pipefail
@@ -152,7 +152,7 @@ test("Gitea quality gate validates before publishing an immutable ACR manifest",
assert.match(workflow, /docker compose --help \| grep -q -- '--project-name'/);
assert.match(
workflow,
/POSTGRES_TEST_SOURCE_IMAGE: swr\.cn-north-4\.myhuaweicloud\.com\/ddn-k8s\/docker\.io\/library\/postgres:17-alpine/,
/POSTGRES_TEST_SOURCE_IMAGE: public\.ecr\.aws\/docker\/library\/postgres:17-alpine@sha256:742f40ea20b9ff2ff31db5458d127452988a2164df9e17441e191f3b72252193/,
);
assert.match(workflow, /POSTGRES_TEST_IMAGE: postgres:17-alpine/);
assert.match(workflow, /docker image inspect "\$POSTGRES_TEST_IMAGE"/);