Skip to content

Commit 75e79a3

Browse files
committed
workflows: u-boot: Keep older builds
Manage a "latest" symlink as for the kernel; add transition code. Signed-off-by: Loïc Minier <[email protected]>
1 parent 9676c62 commit 75e79a3

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/u-boot.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,19 @@ jobs:
7070
- name: Upload results to fileserver space for downloads
7171
run: |
7272
set -ux
73-
export BUILD_DIR="/fileserver-downloads/qcom-deb-images/u-boot-rb1-latest"
73+
export BUILD_DIR="/fileserver-downloads/${BUILD_ID}"
7474
mkdir -vp "${BUILD_DIR}"
7575
cp -av artifacts/* "${BUILD_DIR}"
76+
77+
# create or update u-boot-rb1-latest symlink
78+
mkdir -vp /fileserver-downloads/qcom-deb-images
79+
(
80+
cd /fileserver-downloads/qcom-deb-images
81+
# remove what used to be a directory and create/update symlink to
82+
# point to latest build
83+
rm -rvf u-boot-rb1-latest
84+
ln -svf "../${BUILD_ID}" u-boot-rb1-latest
85+
)
7686
# perhaps help NFS sync
7787
sync
7888

0 commit comments

Comments
 (0)