Skip to content

Commit 576e374

Browse files
committed
Update docker build workflow
Signed-off-by: Dong Hyuk Chang <donghyukc@nvidia.com>
1 parent 16265a9 commit 576e374

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

.github/workflows/_build_container.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,19 @@ on:
2020
description: "The name of the repo to build container"
2121
required: true
2222
type: string
23+
runner_name:
24+
description: "Name of the runner"
25+
required: true
26+
type: string
27+
environment_name:
28+
description: "GitHub environment to use for this build"
29+
required: true
30+
type: string
2331

2432
jobs:
2533
docker-build:
34+
runs-on: ${{ inputs.runner_name }}
35+
environment: ${{ inputs.environment_name }}
2636
steps:
2737
- name: Checkout
2838
uses: actions/checkout@v4

.github/workflows/cicd-main.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,20 +131,18 @@ jobs:
131131
132132
cicd-container-build:
133133
needs: [pre-flight, cicd-wait-in-queue]
134-
runs-on: self-hosted-nemo
135134
if: |
136135
(
137136
success()
138137
|| needs.pre-flight.outputs.is_ci_workload == 'true'
139138
|| needs.pre-flight.outputs.force_run_all == 'true'
140139
)
141140
&& !cancelled()
142-
environment: nemo-ci
143-
steps:
144-
- name: Build docker container
145-
uses: ./.github/workflows/_build_container.yml
146-
with:
147-
repo_name: "Automodel"
141+
uses: ./.github/workflows/_build_container.yml
142+
with:
143+
environment_name: "nemo-ci"
144+
repo_name: "Automodel"
145+
runner_name: self-hosted-nemo
148146

149147
cicd-unit-tests:
150148
strategy:

0 commit comments

Comments
 (0)