Skip to content

Commit 5d05452

Browse files
committed
ci: debos: upload artifacts to fileserver
Signed-off-by: Loïc Minier <[email protected]>
1 parent e74cb12 commit 5d05452

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/debos.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ defaults:
2626
env:
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
3133
concurrency:
@@ -97,3 +99,18 @@ jobs:
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+

0 commit comments

Comments
 (0)