@@ -37,31 +37,17 @@ jobs:
3737 uses : ./.github/workflows/runner-selector.yml
3838 with :
3939 runner_env : ${{ inputs.runner_env }}
40- overcloud-host-image-build :
41- name : Build overcloud host images
40+ create-tag :
41+ name : Create a tag to be added to resulting images
4242 if : github.repository == 'stackhpc/stackhpc-kayobe-config'
4343 environment : ${{ inputs.runner_env }}
4444 runs-on : ${{ needs.runner-selection.outputs.runner_name_image_build }}
4545 needs :
4646 - runner-selection
4747 permissions : {}
48+ outputs :
49+ host_image_tag : ${{ steps.host_image_tag.outputs.host_image_tag }}
4850 steps :
49- - name : Validate inputs
50- run : |
51- if [[ ${{ inputs.rocky9 }} == 'false' && ${{ inputs.ubuntu-noble }} == 'false' ]]; then
52- echo "At least one distribution must be selected"
53- exit 1
54- fi
55-
56- - name : Install Package
57- uses : ConorMacBride/install-package@main
58- with :
59- apt : git unzip nodejs python3-pip python3-venv openssh-server openssh-client jq
60-
61- - name : Start the SSH service
62- run : |
63- sudo /etc/init.d/ssh start
64-
6551 - name : Checkout
6652 uses : actions/checkout@v4
6753 with :
8470 run : |
8571 echo "host_image_tag=$(date +${{ steps.openstack_release.outputs.openstack_release }}-%Y%m%dT%H%M%S)" >> $GITHUB_OUTPUT
8672
73+ overcloud-host-image-build :
74+ name : Build overcloud host images
75+ if : github.repository == 'stackhpc/stackhpc-kayobe-config'
76+ environment : ${{ inputs.runner_env }}
77+ runs-on : ${{ needs.runner-selection.outputs.runner_name_image_build }}
78+ needs :
79+ - runner-selection
80+ - create-tag
81+ permissions : {}
82+ steps :
83+ - name : Validate inputs
84+ run : |
85+ if [[ ${{ inputs.rocky9 }} == 'false' && ${{ inputs.ubuntu-noble }} == 'false' ]]; then
86+ echo "At least one distribution must be selected"
87+ exit 1
88+ fi
89+
8790 - name : Display overcloud host image tag
8891 run : |
89- echo "${{ steps.host_image_tag.outputs.host_image_tag }}"
92+ echo "${{ needs.create-tag.outputs.host_image_tag }}"
93+
94+ - name : Checkout
95+ uses : actions/checkout@v4
96+ with :
97+ path : src/kayobe-config
98+
99+ - name : Install Package
100+ uses : ConorMacBride/install-package@main
101+ with :
102+ apt : git unzip nodejs python3-pip python3-venv openssh-server openssh-client jq
103+
104+ - name : Start the SSH service
105+ run : |
106+ sudo /etc/init.d/ssh start
90107
91108 - name : Install Kayobe
92109 run : |
0 commit comments