ci: force GHCR images to public; update docker-compose to use postgres-runtime

This commit is contained in:
Haitao Pan 2025-12-06 20:48:53 +08:00
parent 50169300e3
commit bc2aec193b
2 changed files with 16 additions and 1 deletions

View File

@ -160,3 +160,18 @@ jobs:
run: |
IMG=${{ env.REGISTRY }}/${{ env.ORG }}/${{ matrix.service.name }}@${{ steps.build.outputs.digest }}
cosign sign --yes "$IMG"
# -------------------------------------------------------------
# Make GHCR Image Public
# -------------------------------------------------------------
- name: Make Image Public
if: env.PUSH_IMAGES == 'true' || env.PUSH_IMAGES == true
run: |
IMAGE="${{ env.REGISTRY }}/${{ env.ORG }}/${{ matrix.service.name }}"
PACKAGE="${{ matrix.service.name }}"
echo "Setting visibility of $IMAGE to public..."
gh api \
--method PATCH \
-H "Accept: application/vnd.github+json" \
/orgs/${{ env.ORG }}/packages/container/${PACKAGE}/visibility \
-f visibility="public"

View File

@ -4,7 +4,7 @@ x-workspace: &workspace ${XCONTROL_WORKSPACE:-..}
services:
db:
image: postgres:17-alpine
image: ghcr.io/cloud-neutral-toolkit/postgres-runtime:latest
container_name: xcontrol-db
restart: unless-stopped
environment: