ci: use git URL rewrite with token for submodule auth
This commit is contained in:
@@ -10,10 +10,8 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: apps/dashboard-ui
|
working-directory: apps/dashboard-ui
|
||||||
steps:
|
steps:
|
||||||
- name: Rewrite submodule URLs
|
- name: Configure git auth for submodules
|
||||||
run: |
|
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
|
||||||
git config --global url."http://172.20.8.90:3000/".insteadOf "https://git.datadunia.com/"
|
|
||||||
git config --global url."http://172.20.8.90:3000/".insteadOf "http://git.datadunia.com/"
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|||||||
@@ -17,10 +17,8 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: apps/device-agent
|
working-directory: apps/device-agent
|
||||||
steps:
|
steps:
|
||||||
- name: Rewrite submodule URLs
|
- name: Configure git auth for submodules
|
||||||
run: |
|
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
|
||||||
git config --global url."http://172.20.8.90:3000/".insteadOf "https://git.datadunia.com/"
|
|
||||||
git config --global url."http://172.20.8.90:3000/".insteadOf "http://git.datadunia.com/"
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|||||||
@@ -10,10 +10,8 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: apps/server-core
|
working-directory: apps/server-core
|
||||||
steps:
|
steps:
|
||||||
- name: Rewrite submodule URLs
|
- name: Configure git auth for submodules
|
||||||
run: |
|
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
|
||||||
git config --global url."http://172.20.8.90:3000/".insteadOf "https://git.datadunia.com/"
|
|
||||||
git config --global url."http://172.20.8.90:3000/".insteadOf "http://git.datadunia.com/"
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|||||||
+6
-18
@@ -15,16 +15,12 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: apps/server-core
|
working-directory: apps/server-core
|
||||||
steps:
|
steps:
|
||||||
- name: Rewrite submodule URLs
|
- name: Configure git auth for submodules
|
||||||
run: |
|
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
|
||||||
git config --global url."http://172.20.8.90:3000/".insteadOf "https://git.datadunia.com/"
|
|
||||||
git config --global url."http://172.20.8.90:3000/".insteadOf "http://git.datadunia.com/"
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.BUILD_TOKEN }}
|
|
||||||
persist-credentials: true
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.26'
|
go-version: '1.26'
|
||||||
@@ -37,16 +33,12 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: apps/device-agent
|
working-directory: apps/device-agent
|
||||||
steps:
|
steps:
|
||||||
- name: Rewrite submodule URLs
|
- name: Configure git auth for submodules
|
||||||
run: |
|
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
|
||||||
git config --global url."http://172.20.8.90:3000/".insteadOf "https://git.datadunia.com/"
|
|
||||||
git config --global url."http://172.20.8.90:3000/".insteadOf "http://git.datadunia.com/"
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.BUILD_TOKEN }}
|
|
||||||
persist-credentials: true
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.26'
|
go-version: '1.26'
|
||||||
@@ -59,16 +51,12 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: apps/dashboard-ui
|
working-directory: apps/dashboard-ui
|
||||||
steps:
|
steps:
|
||||||
- name: Rewrite submodule URLs
|
- name: Configure git auth for submodules
|
||||||
run: |
|
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
|
||||||
git config --global url."http://172.20.8.90:3000/".insteadOf "https://git.datadunia.com/"
|
|
||||||
git config --global url."http://172.20.8.90:3000/".insteadOf "http://git.datadunia.com/"
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.BUILD_TOKEN }}
|
|
||||||
persist-credentials: true
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '24'
|
node-version: '24'
|
||||||
|
|||||||
@@ -10,10 +10,8 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: apps/docs
|
working-directory: apps/docs
|
||||||
steps:
|
steps:
|
||||||
- name: Rewrite submodule URLs
|
- name: Configure git auth for submodules
|
||||||
run: |
|
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
|
||||||
git config --global url."http://172.20.8.90:3000/".insteadOf "https://git.datadunia.com/"
|
|
||||||
git config --global url."http://172.20.8.90:3000/".insteadOf "http://git.datadunia.com/"
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|||||||
@@ -16,10 +16,8 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Rewrite submodule URLs
|
- name: Configure git auth for submodules
|
||||||
run: |
|
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
|
||||||
git config --global url."http://172.20.8.90:3000/".insteadOf "https://git.datadunia.com/"
|
|
||||||
git config --global url."http://172.20.8.90:3000/".insteadOf "http://git.datadunia.com/"
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|||||||
Reference in New Issue
Block a user