Skip to content

Commit b88e310

Browse files
committed
workflows: debos: Readd BUILD_ID
upload-private-action takes care of generating an unique path, but we have to retrive the artifacts too, and there's no download action yet, so mirror this path in our workflow for now. Also, reinstate build id for the SBOM metadata. Signed-off-by: Loïc Minier <[email protected]>
1 parent 5a2e05c commit b88e310

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/debos.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ concurrency:
1717
group: ${{ github.workflow }}-${{ github.ref }}
1818
cancel-in-progress: true
1919

20+
env:
21+
# unique id per workflow run used by upload-private-artifact to store
22+
# artifacts under the fileserver downloads
23+
# XXX should probably have a download-private-artifact action instead
24+
FILESERVER_PATH: ${{ github.repository }}/${{ github.run_id }}-${{ github.run_attempt }}
25+
# image build id; used for SBOM generation; TODO: should be used in image metadata too
26+
BUILD_ID: ${{ github.run_id }}-${{ github.run_attempt }}
27+
2028
jobs:
2129
build-debos:
2230
name: Build and upload debos recipes
@@ -102,7 +110,7 @@ jobs:
102110
apt -y full-upgrade
103111
104112
- name: Retrieve rootfs from fileserver
105-
run: cp -av /fileserver-downloads/${BUILD_ID}/rootfs.tar.gz .
113+
run: cp -av "/fileserver-downloads/${FILESERVER_PATH}/rootfs.tar.gz" .
106114

107115
- name: Unpack rootfs
108116
run: mkdir -v rootfs && tar -C rootfs -xf rootfs.tar.gz

0 commit comments

Comments
 (0)