Skip to content

Commit 4b79796

Browse files
authored
[build] Updated some more workflows to use Nexus when run on self-hosted runners (#2183)
* Updated some more workflows to use Nexus when run on self-hosted runners Signed-off-by: Roland Asmann <[email protected]> * DNS was added for Nexus server, changed IP to name Signed-off-by: Roland Asmann <[email protected]> --------- Signed-off-by: Roland Asmann <[email protected]>
1 parent a45a6e9 commit 4b79796

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.github/workflows/image-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
type: boolean
1919

2020
env:
21-
NEXUS_URL: http://100.73.146.80:8081/repository/npm/ # IP for mini-dev-1, sometimes docker engine can't resolve names!
21+
NEXUS_URL: http://pkg.cdxgen.net:8081/repository/npm/
2222
REPO: ghcr.io
2323
TAG: v11
2424
TEAM: cyclonedx

.github/workflows/nodejs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ concurrency:
3434
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
3535
cancel-in-progress: true
3636

37+
env:
38+
NEXUS_URL: http://pkg.cdxgen.net:8081/repository/npm/
39+
3740
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
3841
permissions: {}
3942

@@ -63,6 +66,8 @@ jobs:
6366
- name: Trim CI agent
6467
run: |
6568
rm -rf /tmp/docker-images-* /tmp/atom-usages-* /tmp/atom-reachables-*
69+
- name: Setup Nexus usage
70+
run: echo "registry=$NEXUS_URL" > .npmrc
6671
- name: pnpm install
6772
run: |
6873
corepack pnpm install --config.strict-dep-builds=true

.github/workflows/repotests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ concurrency:
1818
cancel-in-progress: true
1919

2020
env:
21+
NEXUS_URL: http://pkg.cdxgen.net:8081/repository/npm/
2122
NODE_VERSION: 24.6.0
2223

2324
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
@@ -50,6 +51,8 @@ jobs:
5051
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
5152
with:
5253
node-version: ${{ env.NODE_VERSION }}
54+
- name: Setup Nexus usage
55+
run: echo "registry=$NEXUS_URL" > .npmrc
5356
- name: npm install
5457
run: |
5558
corepack pnpm install --config.strict-dep-builds=true --package-import-method copy
@@ -134,6 +137,8 @@ jobs:
134137
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
135138
with:
136139
node-version: ${{ env.NODE_VERSION }}
140+
- name: Setup Nexus usage
141+
run: echo "registry=$NEXUS_URL" > .npmrc
137142
- name: npm install
138143
run: |
139144
corepack pnpm install --config.strict-dep-builds=true --package-import-method copy
@@ -221,6 +226,9 @@ jobs:
221226
- name: Install bazelisk - windows
222227
if: matrix.os == 'windows-latest'
223228
run: choco install -y bazel
229+
- name: Setup Nexus usage
230+
if: matrix.os == 'self-hosted-ubuntu'
231+
run: echo "registry=$NEXUS_URL" > .npmrc
224232
- name: npm install, build and test
225233
run: |
226234
npm install --global corepack@latest

0 commit comments

Comments
 (0)