build: fetch identitydb as remote dependency
This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user