Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions .github/workflows/debos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ defaults:
env:
INCUS_IMAGE: images:debian/trixie/arm64
INCUS_NAME: debos
FILESERVER_DIR: /srv/gh-runners/quic-yocto/builds
FILESERVER_URL: https://quic-yocto-fileserver-1029608027416.us-central1.run.app

# cancel in progress builds for this workflow triggered by the same ref
concurrency:
Expand Down Expand Up @@ -72,8 +74,9 @@ jobs:
# these commands are run inside the container
cat <<EOF
apt update
apt upgrade -y
apt install -y debos
apt -y upgrade
apt -y full-upgrade
apt -y install debos
EOF
) | sudo incus exec "${INCUS_NAME}" -- sh

Expand All @@ -97,3 +100,21 @@ jobs:
EOF
) | sudo incus exec "${INCUS_NAME}" -- sh

- name: Upload artifacts to fileserver
run: |
set -x
# curl will be used to talk to fileserver; should be installed by
# default
sudo apt -y install curl
# github runs are only unique per repository and may also be re-run;
# create an unique id with repository, run id, and run attempt
id="${GITHUB_REPOSITORY}-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
# create a directory for the current run
dir="${FILESERVER_DIR}/${id}"
mkdir -vp "${dir}"
# copy output files
cp -v disk.img "${dir}"
# instruct fileserver to publish this directory
url="${FILESERVER_URL}/${id}/"
curl -X POST -H 'Accept: text/event-stream' "${url}"

Loading