Migrate SharedCode consumers to Gitea packages
This commit is contained in:
1 parent
a988fdee44
commit
d4dce959f9
6 files changed
+3675
-3709
No files matched your search
@@ -18,6 +18,9 @@ on:
|
||||
- '.github/workflows/tests.yml'
|
||||
workflow_dispatch: {}
|
||||
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_REGISTRY_TOKEN }}
|
||||
|
||||
jobs:
|
||||
backend:
|
||||
name: Go backend
|
||||
@@ -33,22 +36,6 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: false
|
||||
- name: Checkout latest SharedCode
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: |
|
||||
for attempt in 1 2 3 4 5; do
|
||||
rm -rf SharedCode
|
||||
if git clone --depth 1 --branch main --single-branch https://repos.gfranz.ch/Gabriel20xx/shared SharedCode; then
|
||||
break
|
||||
fi
|
||||
if [ "$attempt" -eq 5 ]; then
|
||||
exit 1
|
||||
fi
|
||||
delay=$((attempt * 5))
|
||||
echo "SharedCode clone failed (attempt ${attempt}/5); retrying in ${delay}s..." >&2
|
||||
sleep "$delay"
|
||||
done
|
||||
|
||||
- name: Configure Gitea Go registry
|
||||
working-directory: ${{ github.workspace }}
|
||||
shell: bash
|
||||
@@ -97,25 +84,11 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: false
|
||||
- name: Checkout latest SharedCode
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: |
|
||||
for attempt in 1 2 3 4 5; do
|
||||
rm -rf SharedCode
|
||||
if git clone --depth 1 --branch main --single-branch https://repos.gfranz.ch/Gabriel20xx/shared SharedCode; then
|
||||
break
|
||||
fi
|
||||
if [ "$attempt" -eq 5 ]; then
|
||||
exit 1
|
||||
fi
|
||||
delay=$((attempt * 5))
|
||||
echo "SharedCode clone failed (attempt ${attempt}/5); retrying in ${delay}s..." >&2
|
||||
sleep "$delay"
|
||||
done
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
registry-url: https://repos.gfranz.ch/api/packages/Gabriel20xx/npm/
|
||||
scope: '@gabriel20xx'
|
||||
node-version: '22'
|
||||
cache: npm
|
||||
cache-dependency-path: frontend/package-lock.json
|
||||
|
||||
Reference in new issue
Block a user