@@ -139,7 +139,7 @@ jobs:
139139 echo "Tag: $TAG"
140140 echo "Commit: $COMMIT"
141141
142- build-qemu -artifacts :
142+ build-Qemu -artifacts :
143143 name : Check and build missing Qemu artifacts
144144 needs : [get-versions,check-release-existance,tag-parent]
145145 if : needs.check-release-existance.outputs.exists == 'false'
@@ -149,7 +149,7 @@ jobs:
149149 arch : ' ["amd64", "arm64"]'
150150 secrets : inherit
151151
152- build-solo5 -artifacts :
152+ build-Solo5 -artifacts :
153153 name : Check and build missing Solo5 artifacts
154154 needs : [get-versions,check-release-existance,tag-parent]
155155 if : needs.check-release-existance.outputs.exists == 'false'
@@ -171,7 +171,7 @@ jobs:
171171
172172 create-new-release :
173173 name : Create new release
174- needs : [get-versions,check-release-existance,build-qemu -artifacts,build-solo5 -artifacts]
174+ needs : [get-versions,check-release-existance,build-Qemu -artifacts,build-Solo5 -artifacts]
175175 if : needs.check-release-existance.outputs.exists == 'false'
176176 runs-on : ubuntu-latest
177177 permissions :
@@ -183,108 +183,66 @@ jobs:
183183 with :
184184 egress-policy : audit
185185
186- - name : Get Qemu artifact's workflow id
187- id : qemu_artifact
188- run : |
189- RUN_ID=$(curl -s -H "Accept: application/vnd.github.v3+json" \
190- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
191- "https://api.github.com/repos/${{ github.repository }}/actions/runs?status=success" \
192- | jq -r '.workflow_runs[].artifacts_url' \
193- | xargs -I {} curl -s -H "Accept: application/vnd.github.v3+json" \
194- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
195- {} \
196- | jq -r --arg TARGET \
197- "qemu-amd64-${{ needs.get-versions.outputs.qemu_version }}-${{ needs.check-release-existance.outputs.qemu_hash }}" \
198- '.artifacts[]? | select(.name == $TARGET) | .workflow_run.id' \
199- | head -n 1)
200-
201- echo "runID=${RUN_ID}" >> $GITHUB_OUTPUT
202-
203- - name : Get Solo5 artifact's workflow id
204- id : solo5_artifact
205- run : |
206- RUN_ID=$(curl -s -H "Accept: application/vnd.github.v3+json" \
207- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
208- "https://api.github.com/repos/${{ github.repository }}/actions/runs?status=success" \
209- | jq -r '.workflow_runs[].artifacts_url' \
210- | xargs -I {} curl -s -H "Accept: application/vnd.github.v3+json" \
211- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
212- {} \
213- | jq -r --arg TARGET \
214- "solo5-hvt-amd64-${{ needs.get-versions.outputs.solo5_version }}" \
215- '.artifacts[]? | select(.name == $TARGET) | .workflow_run.id' \
216- | head -n 1)
217-
218- echo "runID=${RUN_ID}" >> $GITHUB_OUTPUT
219-
220- - name : Get Virtiofsd artifact's workflow id
221- id : virtiofsd_artifact
186+ - name : Download Firecracker amd64 binary
222187 run : |
223- RUN_ID=$(curl -s -H "Accept: application/vnd.github.v3+json" \
224- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
225- "https://api.github.com/repos/${{ github.repository }}/actions/runs?status=success" \
226- | jq -r '.workflow_runs[].artifacts_url' \
227- | xargs -I {} curl -s -H "Accept: application/vnd.github.v3+json" \
228- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
229- {} \
230- | jq -r --arg TARGET \
231- "virtiofsd-amd64-${{ needs.get-versions.outputs.virtiofsd_version }}" \
232- '.artifacts[]? | select(.name == $TARGET) | .workflow_run.id' \
233- | head -n 1)
234-
235- echo "runID=${RUN_ID}" >> $GITHUB_OUTPUT
188+ echo "Qemu Run id is ${{ needs.build-Qemu-artifacts.outputs.artifact_run_id }}
189+ echo "Qemu suffix is ${{ needs.build-Qemu-artifacts.outputs.artifact_suffix }}
190+ echo "Solo5 Run id is ${{ needs.build-Solo5-artifacts.outputs.artifact_run_id }}
191+ echo "Solo5 suffix is ${{ needs.build-Solo5-artifacts.outputs.artifact_suffix }}
192+ echo "Virtiofsd Run id is ${{ needs.build-Virtiofsd-artifact.outputs.artifact_run_id }}
193+ echo "Virtiofsd suffix is ${{ needs.build-Virtiofsd-artifact.outputs.artifact_suffix }}
236194
237195 - name : Download Qemu amd64 artifacts
238196 uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
239197 with :
240- name : qemu-amd64-${{ needs.get-versions.outputs.qemu_version }}-${{ needs.check-release-existance. outputs.qemu_hash }}
198+ name : qemu-amd64-${{ needs.build-Qemu-artifacts. outputs.artifact_suffix }}
241199 path : /tmp/qemu_amd64
242- run-id : ${{ steps.qemu_artifact .outputs.runID }}
200+ run-id : ${{ needs.build-Qemu-artifacts .outputs.artifact_run_id }}
243201 merge-multiple : true
244202 github-token : ${{ secrets.GITHUB_TOKEN }}
245203
246204 - name : Download Qemu arm64 artifacts
247205 uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
248206 with :
249- name : qemu-arm64-${{ needs.get-versions.outputs.qemu_version }}-${{ needs.check-release-existance. outputs.qemu_hash }}
207+ name : qemu-arm64-${{ needs.build-Qemu-artifacts. outputs.artifact_suffix }}
250208 path : /tmp/qemu_arm64
251- run-id : ${{ steps.qemu_artifact .outputs.runID }}
209+ run-id : ${{ needs.build-Qemu-artifacts .outputs.artifact_run_id }}
252210 merge-multiple : true
253211 github-token : ${{ secrets.GITHUB_TOKEN }}
254212
255213 - name : Download Solo5 amd64 artifacts
256214 uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
257215 with :
258- pattern : solo5-*-amd64-${{ needs.get-versions .outputs.solo5_version }}
216+ pattern : solo5-*-amd64-${{ needs.build-Solo5-artifacts .outputs.artifact_suffix }}
259217 path : /tmp/solo5_amd64
260- run-id : ${{ steps.solo5_artifact .outputs.runID }}
218+ run-id : ${{ needs.build-Solo5-artifacts .outputs.artifact_run_id }}
261219 merge-multiple : true
262220 github-token : ${{ secrets.GITHUB_TOKEN }}
263221
264222 - name : Download Solo5 arm64 artifacts
265223 uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
266224 with :
267- pattern : solo5-*-arm64-${{ needs.get-versions .outputs.solo5_version }}
225+ pattern : solo5-*-arm64-${{ needs.build-Solo5-artifacts .outputs.artifact_suffix }}
268226 path : /tmp/solo5_arm64
269- run-id : ${{ steps.solo5_artifact .outputs.runID }}
227+ run-id : ${{ needs.build-Solo5-artifacts .outputs.artifact_run_id }}
270228 merge-multiple : true
271229 github-token : ${{ secrets.GITHUB_TOKEN }}
272230
273231 - name : Download Virtiofsd amd64 artifacts
274232 uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
275233 with :
276- name : virtiofsd-amd64-${{ needs.get-versions .outputs.virtiofsd_version }}
234+ name : virtiofsd-amd64-${{ needs.build-Virtiofsd-artifact .outputs.artifact_suffix }}
277235 path : /tmp/virtiofsd_amd64
278- run-id : ${{ steps.virtiofsd_artifact .outputs.runID }}
236+ run-id : ${{ needs.build-Virtiofsd-artifact .outputs.artifact_run_id }}
279237 merge-multiple : true
280238 github-token : ${{ secrets.GITHUB_TOKEN }}
281239
282240 - name : Download Virtiofsd arm64 artifacts
283241 uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
284242 with :
285- name : virtiofsd-arm64-${{ needs.get-versions .outputs.virtiofsd_version }}
243+ name : virtiofsd-arm64-${{ needs.build-Virtiofsd-artifact .outputs.artifact_suffix }}
286244 path : /tmp/virtiofsd_arm64
287- run-id : ${{ steps.virtiofsd_artifact .outputs.runID }}
245+ run-id : ${{ needs.build-Virtiofsd-artifact .outputs.artifact_run_id }}
288246 merge-multiple : true
289247 github-token : ${{ secrets.GITHUB_TOKEN }}
290248
0 commit comments