ci: namespace registry images under repo owner
CI / Lint · Typecheck · Test · Build (push) Successful in 49s
CI / Playwright (smoke) (push) Has been skipped
CI / Build & push images (push) Successful in 3m18s

Gitea's OCI registry requires <host>/<owner>/<image>. Pushes to the
bare <host>/<image> path return 404. Prepend github.repository_owner
so REGISTRY_URL can stay as just the hostname.
This commit is contained in:
2026-04-16 21:20:49 -04:00
parent 37494c17ef
commit 07431c6550
+5 -2
View File
@@ -104,9 +104,12 @@ jobs:
- name: Log in to ${{ vars.REGISTRY_URL }} - name: Log in to ${{ vars.REGISTRY_URL }}
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "${{ vars.REGISTRY_URL }}" --username "${{ github.actor }}" --password-stdin run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "${{ vars.REGISTRY_URL }}" --username "${{ github.actor }}" --password-stdin
# Gitea's OCI registry is namespaced by owner — images must be at
# <host>/<owner>/<image>. Prepend the repo owner so REGISTRY_URL can
# stay as just the hostname.
- name: Build & push API image - name: Build & push API image
run: | run: |
IMAGE="${{ vars.REGISTRY_URL }}/vector-api" IMAGE="${{ vars.REGISTRY_URL }}/${{ github.repository_owner }}/vector-api"
docker build \ docker build \
-f apps/api/Dockerfile \ -f apps/api/Dockerfile \
-t "$IMAGE:${{ github.sha }}" \ -t "$IMAGE:${{ github.sha }}" \
@@ -117,7 +120,7 @@ jobs:
- name: Build & push Web image - name: Build & push Web image
run: | run: |
IMAGE="${{ vars.REGISTRY_URL }}/vector-web" IMAGE="${{ vars.REGISTRY_URL }}/${{ github.repository_owner }}/vector-web"
docker build \ docker build \
-f apps/web/Dockerfile \ -f apps/web/Dockerfile \
-t "$IMAGE:${{ github.sha }}" \ -t "$IMAGE:${{ github.sha }}" \