Skip to content

Commit 2c9d29a

Browse files
committed
Change release workflow
Signed-off-by: Charalampos Mainas <charalampos.mainas@gmail.com>
1 parent f5fc555 commit 2c9d29a

4 files changed

Lines changed: 24 additions & 49 deletions

File tree

.github/workflows/qemu_build.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ jobs:
5959
id: search_amd64
6060
uses: ./.github/actions/get-artifact-info/
6161
with:
62-
name: format(${{ steps.name.outputs.full }}, 'amd64')
62+
name: ${{ format(steps.name.outputs.full, 'amd64') }}
6363
token: ${{ secrets.GITHUB_TOKEN }}
6464

6565
- name: Search for armd64 artifact
6666
id: search_arm64
6767
uses: ./.github/actions/get-artifact-info/
6868
with:
69-
name: format(${{ steps.name.outputs.full }}, 'arm64')
69+
name: ${{ format(steps.name.outputs.full, 'arm64') }}
7070
token: ${{ secrets.GITHUB_TOKEN }}
7171

7272
- name: Summarize search results
@@ -100,7 +100,7 @@ jobs:
100100
arch: ${{ fromJSON(inputs.arch) }}
101101
runs-on: ${{ fromJSON(inputs.runner-arch-map)[matrix.arch] }}
102102
outputs:
103-
run_id: ${{ steps.artifact_info.outputs.run_id }}
103+
run_id: ${{ github.run_id }}
104104
steps:
105105

106106
- name: Harden the runner (Audit all outbound calls)
@@ -142,12 +142,6 @@ jobs:
142142
name: qemu-${{ matrix.arch }}-${{ needs.check-artifact-existence.outputs.suffix }}
143143
path: /tmp/qemu_build
144144

145-
- name: Collect artifact build info
146-
id: artifact_info
147-
run: |
148-
echo "${{ github.run_id }}"
149-
echo "run_id=${{ github.run_id }}" >> $GITHUB_OUTPUT
150-
151145
summarize-info:
152146
runs-on: ubuntu-latest
153147
needs: [check-artifact-existence, build-Qemu]

.github/workflows/release-trigger.yaml

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
echo "$FIRECRACKER_VERSION"
4949
echo "$VIRTIOFSD_VERSION"
5050
51-
check-release-existance:
51+
check-release-existence:
5252
name: Check if release already exists
5353
needs: [get-versions]
5454
runs-on: ubuntu-latest
@@ -103,8 +103,8 @@ jobs:
103103
104104
tag-parent:
105105
name: Tag Parent Repository
106-
needs: [check-release-existance]
107-
if: needs.check-release-existance.outputs.exists == 'false'
106+
needs: [check-release-existence]
107+
if: needs.check-release-existence.outputs.exists == 'false'
108108
runs-on: ubuntu-latest
109109
permissions:
110110
contents: write
@@ -119,7 +119,7 @@ jobs:
119119
id: tag_parent
120120
with:
121121
repository: ${{ github.repository }}
122-
tag: ${{ needs.check-release-existance.outputs.release }}
122+
tag: ${{ needs.check-release-existence.outputs.release }}
123123
token: ${{ secrets.GITHUB_TOKEN }}
124124
skip_update: true
125125

@@ -141,8 +141,8 @@ jobs:
141141
142142
build-Qemu-artifacts:
143143
name: Check and build missing Qemu artifacts
144-
needs: [get-versions,check-release-existance,tag-parent]
145-
if: needs.check-release-existance.outputs.exists == 'false'
144+
needs: [get-versions,check-release-existence,tag-parent]
145+
if: needs.check-release-existence.outputs.exists == 'false'
146146
uses: ./.github/workflows/qemu_build.yaml
147147
with:
148148
qemu_version: ${{ needs.get-versions.outputs.qemu_version }}
@@ -151,8 +151,8 @@ jobs:
151151

152152
build-Solo5-artifacts:
153153
name: Check and build missing Solo5 artifacts
154-
needs: [get-versions,check-release-existance,tag-parent]
155-
if: needs.check-release-existance.outputs.exists == 'false'
154+
needs: [get-versions,check-release-existence,tag-parent]
155+
if: needs.check-release-existence.outputs.exists == 'false'
156156
uses: ./.github/workflows/solo5_build.yaml
157157
with:
158158
solo5_version: ${{ needs.get-versions.outputs.solo5_version }}
@@ -161,8 +161,8 @@ jobs:
161161

162162
build-Virtiofsd-artifacts:
163163
name: Check and build missing Virtiofsd artifact
164-
needs: [get-versions,check-release-existance,tag-parent]
165-
if: needs.check-release-existance.outputs.exists == 'false'
164+
needs: [get-versions,check-release-existence,tag-parent]
165+
if: needs.check-release-existence.outputs.exists == 'false'
166166
uses: ./.github/workflows/virtiofsd_build.yaml
167167
with:
168168
virtiofsd_version: ${{ needs.get-versions.outputs.virtiofsd_version }}
@@ -171,8 +171,8 @@ jobs:
171171

172172
create-new-release:
173173
name: Create new release
174-
needs: [get-versions,check-release-existance,build-Qemu-artifacts,build-Solo5-artifacts,build-Virtiofsd-artifacts]
175-
if: needs.check-release-existance.outputs.exists == 'false'
174+
needs: [get-versions,check-release-existence,build-Qemu-artifacts,build-Solo5-artifacts,build-Virtiofsd-artifacts]
175+
if: needs.check-release-existence.outputs.exists == 'false'
176176
runs-on: ubuntu-latest
177177
permissions:
178178
contents: write
@@ -183,15 +183,6 @@ jobs:
183183
with:
184184
egress-policy: audit
185185

186-
- name: Download Firecracker amd64 binary
187-
run: |
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-artifacts.outputs.artifact_run_id }}
193-
echo "Virtiofsd suffix is ${{ needs.build-Virtiofsd-artifacts.outputs.artifact_suffix }}
194-
195186
- name: Download Qemu amd64 artifacts
196187
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
197188
with:
@@ -266,25 +257,25 @@ jobs:
266257
mv /tmp/solo5_amd64/solo5-hvt /tmp/qemu_amd64/opt/urunc/bin/
267258
mv /tmp/solo5_amd64/solo5-spt /tmp/qemu_amd64/opt/urunc/bin/
268259
mv /tmp/virtiofsd_amd64/virtiofsd_static /tmp/qemu_amd64/opt/urunc/bin/
269-
tar -C /tmp/qemu_amd64 -czf release-amd64-${{ needs.check-release-existance.outputs.release }}.tar.gz /tmp/qemu_amd64
260+
tar -C /tmp/qemu_amd64 -czf release-amd64-${{ needs.check-release-existence.outputs.release }}.tar.gz /tmp/qemu_amd64
270261
mv /tmp/fc_arm64/firecracker /tmp/qemu_arm64/opt/urunc/bin/
271262
mv /tmp/solo5_arm64/solo5-hvt /tmp/qemu_arm64/opt/urunc/bin/
272263
mv /tmp/solo5_arm64/solo5-spt /tmp/qemu_arm64/opt/urunc/bin/
273264
mv /tmp/virtiofsd_arm64/virtiofsd_static /tmp/qemu_arm64/opt/urunc/bin/
274-
tar -C /tmp/qemu_arm64 -czf release-arm64-${{ needs.check-release-existance.outputs.release }}.tar.gz /tmp/qemu_arm64
265+
tar -C /tmp/qemu_arm64 -czf release-arm64-${{ needs.check-release-existence.outputs.release }}.tar.gz /tmp/qemu_arm64
275266
276267
- name: Create release
277268
uses: softprops/action-gh-release@62c96d0c4e8a889135c1f3a25910db8dbe0e85f7 # v2.3.4
278269
id: create_release
279270
with:
280271
files: |
281-
release-amd64-${{ needs.check-release-existance.outputs.release }}.tar.gz
282-
release-arm64-${{ needs.check-release-existance.outputs.release }}.tar.gz
283-
body: ${{ needs.check-release-existance.outputs.release }}
284-
name: ${{ needs.check-release-existance.outputs.release }}
272+
release-amd64-${{ needs.check-release-existence.outputs.release }}.tar.gz
273+
release-arm64-${{ needs.check-release-existence.outputs.release }}.tar.gz
274+
body: ${{ needs.check-release-existence.outputs.release }}
275+
name: ${{ needs.check-release-existence.outputs.release }}
285276
draft: false
286277
prerelease: true
287278
generate_release_notes: false
288-
tag_name: ${{ needs.check-release-existance.outputs.release }}
279+
tag_name: ${{ needs.check-release-existence.outputs.release }}
289280
env:
290281
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/solo5_build.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
arch: ${{ fromJSON(inputs.arch) }}
111111
runs-on: ${{ fromJSON(inputs.runner-arch-map)[matrix.arch] }}
112112
outputs:
113-
run_id: ${{ steps.artifact_info.outputs.run_id }}
113+
run_id: ${{ github.run_id }}
114114
steps:
115115

116116
- name: Harden the runner (Audit all outbound calls)
@@ -147,11 +147,6 @@ jobs:
147147
name: solo5-spt-${{ matrix.arch }}-${{ needs.check-artifact-existence.outputs.suffix }}
148148
path: solo5_source/tenders/spt/solo5-spt
149149

150-
- name: Collect artifact build info
151-
id: artifact_info
152-
run: |
153-
echo "run_id=${{ github.run_id }}" >> $GITHUB_OUTPUT
154-
155150
summarize-info:
156151
runs-on: ubuntu-latest
157152
needs: [check-artifact-existence, build-Solo5]

.github/workflows/virtiofsd_build.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
arch: ${{ fromJSON(inputs.arch) }}
9090
runs-on: ${{ fromJSON(inputs.runner-arch-map)[matrix.arch] }}
9191
outputs:
92-
run_id: ${{ steps.artifact_info.outputs.run_id }}
92+
run_id: ${{ github.run_id }}
9393
steps:
9494

9595
- name: Harden the runner (Audit all outbound calls)
@@ -140,11 +140,6 @@ jobs:
140140
name: virtiofsd-${{ matrix.arch }}-${{ needs.check-artifact-existence.outputs.suffix }}
141141
path: virtiofsd_static
142142

143-
- name: Collect artifact build info
144-
id: artifact_info
145-
run: |
146-
echo "run_id=${{ github.run_id }}" >> $GITHUB_OUTPUT
147-
148143
summarize-info:
149144
runs-on: ubuntu-latest
150145
needs: [check-artifact-existence, build-Virtiofsd]

0 commit comments

Comments
 (0)