build: fetch identitydb as remote dependency

This commit is contained in:
2026-05-11 19:06:50 +09:00
parent 6eb6024e51
commit 4bcd80c33d
5 changed files with 46 additions and 41 deletions

View File

@@ -41,23 +41,6 @@ jobs:
git -c http.extraHeader="Authorization: Basic $AUTH_HEADER" clone --depth 1 --branch "${{ gitea.ref_name }}" "$REPO_URL" repo
git -C repo rev-parse HEAD
- name: Clone IdentityDB dependency
run: |
set -euo pipefail
REPO_SLUG="${{ gitea.repository }}"
REPO_OWNER="${REPO_SLUG%%/*}"
IDENTITYDB_URL="${{ gitea.server_url }}/${REPO_OWNER}/IdentityDB.git"
AUTH_HEADER="$(printf '%s' '${{ gitea.actor }}:${{ secrets.GITEA_TOKEN }}' | base64 -w0)"
git -c http.extraHeader="Authorization: Basic $AUTH_HEADER" clone --depth 1 "$IDENTITYDB_URL" IdentityDB
git -C IdentityDB rev-parse HEAD
- name: Build IdentityDB dependency
working-directory: IdentityDB
run: |
set -euo pipefail
bun install --frozen-lockfile
bun run build
- name: Verify release tag matches package version
working-directory: repo
run: |
@@ -111,23 +94,6 @@ jobs:
git -c http.extraHeader="Authorization: Basic $AUTH_HEADER" clone --depth 1 --branch "${{ gitea.ref_name }}" "$REPO_URL" repo
git -C repo rev-parse HEAD
- name: Clone IdentityDB dependency
run: |
set -euo pipefail
REPO_SLUG="${{ gitea.repository }}"
REPO_OWNER="${REPO_SLUG%%/*}"
IDENTITYDB_URL="${{ gitea.server_url }}/${REPO_OWNER}/IdentityDB.git"
AUTH_HEADER="$(printf '%s' '${{ gitea.actor }}:${{ secrets.GITEA_TOKEN }}' | base64 -w0)"
git -c http.extraHeader="Authorization: Basic $AUTH_HEADER" clone --depth 1 "$IDENTITYDB_URL" IdentityDB
git -C IdentityDB rev-parse HEAD
- name: Build IdentityDB dependency
working-directory: IdentityDB
run: |
set -euo pipefail
bun install --frozen-lockfile
bun run build
- name: Install dependencies
working-directory: repo
run: |