Skip to content
Merged
Show file tree
Hide file tree
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
9 changes: 7 additions & 2 deletions .github/workflows/cblock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# vars.CBLOCK_SSH_USER ssh user on vmcall (default: ci); it
# must be in the cblock group
#
name: cblock
name: freebsd

on:
push:
Expand Down Expand Up @@ -71,11 +71,16 @@ jobs:
EOF

- name: Check the connection to cblockd
run: cblock instances
run: |
set -o pipefail
cblock instances | awk 'NR == 1 || /forge/'

- name: Build the Cblockfile
run: cblock build -n cblocks-ci -t "${GITHUB_SHA::12}" .

- name: Remove the image
run: cblock images --remove "cblocks-ci:${GITHUB_SHA::12}"

- name: Close the ssh connection
if: always()
run: ssh -O exit vmcall.sqrt.ca || true
1 change: 1 addition & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
| base | Example creating a base image from the distfiles on FreeBSD's site |
| builder | Example creating a build for compilation of C/C++ projects |
| h2o | Multi-stage build example where we copy build artifacts from one stage to another |
| fbsd-lite | Minimal FreeBSD 15-STABLE image built from source with its own `src.conf` |
7 changes: 6 additions & 1 deletion src/shell/stage_launch_cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ network_cleanup()

umount_reverse_order()
{
for fs in $(mount -p | awk '{ print $2 }' | grep -F "${instance}" | tail -r); do
#
# Match on the instance directory, not the bare instance id: images
# are committed as <image>.<build instance id> and would match too.
#
for fs in $(mount -p | awk -v p="${data_root}/instances/${instance}/" \
'index($2 "/", p) == 1 { print $2 }' | tail -r); do
umount -f "$fs"
done
}
Expand Down
Loading