File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ defaults:
2626env :
2727 INCUS_IMAGE : images:debian/trixie/arm64
2828 INCUS_NAME : debos
29+ FILESERVER_DIR : /srv/gh-runners/quic-yocto/builds
30+ FILESERVER_URL : https://quic-yocto-fileserver-1029608027416.us-central1.run.app
2931
3032# cancel in progress builds for this workflow triggered by the same ref
3133concurrency :
9799 EOF
98100 ) | sudo incus exec "${INCUS_NAME}" -- sh
99101
102+ - name : Upload artifacts to fileserver
103+ run : |
104+ set -x
105+ # curl will be used to talk to fileserver; should be installed by
106+ # default
107+ sudo apt -y install curl
108+ # create a directory for the current run
109+ dir="${FILESERVER_DIR}/${GITHUB_RUN_ID}"
110+ mkdir -vp "${dir}"
111+ # copy output files
112+ cp -v disk.img "${dir}"
113+ # instruct fileserver to publish this directory
114+ url="${FILESERVER_URL}/${GITHUB_RUN_ID}/"
115+ curl -X POST -H 'Accept: text/event-stream' "${url}"
116+
You can’t perform that action at this time.
0 commit comments