File tree Expand file tree Collapse file tree 2 files changed +45
-6
lines changed Expand file tree Collapse file tree 2 files changed +45
-6
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Create output for `runs-on` variable
3
+
4
+ on :
5
+ workflow_call :
6
+ inputs :
7
+ runner_env :
8
+ description : ' The environment input from caller workflow'
9
+ default : ' SMS Lab'
10
+ required : True
11
+ type : string
12
+ outputs :
13
+ runner_name_image_build :
14
+ description : " Image builder runner name"
15
+ value : ${{ jobs.define_runner.outputs.image-build-runner }}
16
+ runner_name_aio :
17
+ description : " AiO runner name"
18
+ value : ${{ jobs.define_runner.outputs.aio-runner }}
19
+
20
+ jobs :
21
+ define_runner :
22
+ environment : ${{ inputs.runner_env }}
23
+ runs-on : ubuntu-latest
24
+ outputs :
25
+ image-build-runner : ${{ steps.builder-runner.outputs.runner_name_image_build }}
26
+ aio-runner : ${{ steps.aio-runner.outputs.runner_name_aio }}
27
+ steps :
28
+ - name : Set output for image builder runner
29
+ run : echo "Setting runner for ${{ inputs.runner_env }} -> ${{ vars.RUNS_ON_TARGET_IMAGE_BUILDER }}"
30
+ - id : builder-runner
31
+ run : echo "runner_name_image_build=${{ vars.RUNS_ON_TARGET_IMAGE_BUILDER }}" >> $GITHUB_OUTPUT
32
+ - name : Set output for aio runner
33
+ run : echo "Setting runner for ${{ inputs.runner_env }} -> ${{ vars.RUNS_ON_TARGET_AIO }}"
34
+ - id : aio-runner
35
+ run : echo "runner_name_aio=${{ vars.RUNS_ON_TARGET_AIO }}" >> $GITHUB_OUTPUT
36
+
Original file line number Diff line number Diff line change 52
52
generate-tag :
53
53
name : Generate container image tag
54
54
if : github.repository == 'stackhpc/stackhpc-kayobe-config'
55
- environment : ${{ inputs.runner_env }}
56
55
runs-on : ubuntu-latest
57
56
permissions : {}
58
57
outputs :
@@ -109,15 +108,15 @@ jobs:
109
108
run : |
110
109
echo "${{ steps.datetime_tag.outputs.datetime_tag }}"
111
110
112
- - name : Verify environment
113
- run : |
114
- echo "Environment variable RUNS_ON_TARGET_IMAGE_BUILDER: ${{ vars.RUNS_ON_TARGET_IMAGE_BUILDER }}"
111
+ # runner-preqs:
112
+ # uses: ./.github/workflows/runs-on-preq.yml
113
+ # with:
114
+ # runner_env: ${{ inputs.runner_env }}
115
115
116
116
container-image-build :
117
117
name : Build Kolla container images
118
118
if : github.repository == 'stackhpc/stackhpc-kayobe-config'
119
- environment : ${{ inputs.runner_env }}
120
- runs-on : ${{ vars.RUNS_ON_TARGET_IMAGE_BUILDER }}
119
+ runs-on : arc-skc-host-image-builder-runner-sms # ${{ needs.runner-preqs.outputs.runner_name_image_build }}
121
120
timeout-minutes : 720
122
121
permissions : {}
123
122
strategy :
@@ -144,6 +143,10 @@ jobs:
144
143
with :
145
144
path : src/kayobe-config
146
145
146
+ - name : Print user
147
+ run : |
148
+ whoami
149
+
147
150
- name : Make sure dockerd is running and test Docker
148
151
run : |
149
152
docker ps
You can’t perform that action at this time.
0 commit comments