Try again
Buildtest / build (push) Successful in 1m1s

This commit is contained in:
Dominik Werder
2026-07-03 11:11:03 +02:00
parent 4bd389e39d
commit fd9676c9f5
+16 -32
View File
@@ -12,15 +12,14 @@ jobs:
runs-on: rhel10
env:
IMAGE_FN: devimgs-centos-7-rust-flat
# BUILDER_IMAGE: localhost/devimgs-centos-7-rust:latest
# BUILDER_ARCHIVE_URL: https://example.com/devimgs-centos-7-rust.tar
BUILDER_IMAGE: localhost/devimgs/centos-7-rust-flat:latest
PODMAN_STORAGE: ${{ gitea.workspace }}/.podman-storage
PODMAN_RUNROOT: ${{ gitea.workspace }}/.podman-runroot
steps:
- name: Install Podman
run: dnf install --assumeyes podman
- run: mkdir -p "$PODMAN_STORAGE" "$PODMAN_RUNROOT"
- run: |
cat /etc/*release
cat > storage.conf <<EOF
[storage]
driver = "vfs"
@@ -28,35 +27,20 @@ jobs:
runroot = "$PODMAN_RUNROOT"
[storage.options]
EOF
- run: |
podman \
--storage-driver=vfs \
--root "$PODMAN_STORAGE" \
--runroot "$PODMAN_RUNROOT" \
info
- name: Release
run: cat /etc/*release
- name: Download build image
run: |
curl -L \
-o $IMAGE_FN.tgz \
https://gitea.psi.ch/api/packages/daqbuf/generic/$IMAGE_FN/0.1.0/$IMAGE_FN.tgz
- name: Unpack build image
run: <$IMAGE_FN.tgz >$IMAGE_FN.tar zstd -d
- name: Load build image into Podman
run: |
podman \
--storage-driver=vfs \
--root "$PODMAN_STORAGE" \
--runroot "$PODMAN_RUNROOT" \
load --input $IMAGE_FN.tar
- name: Show loaded images
run: |
podman \
--storage-driver=vfs \
--root "$PODMAN_STORAGE" \
--runroot "$PODMAN_RUNROOT" \
images
mkdir -p "$PODMAN_STORAGE" "$PODMAN_RUNROOT"
PODMAN="podman --storage-driver=vfs --root $PODMAN_STORAGE --runroot $PODMAN_RUNROOT"
$PODMAN info
curl -L -o "$IMAGE_FN.tgz" "https://gitea.psi.ch/api/packages/daqbuf/generic/$IMAGE_FN/0.1.0/$IMAGE_FN.tgz"
zstd -d <"$IMAGE_FN.tgz" >"$IMAGE_FN.tar"
$PODMAN import \
--change 'CMD ["/bin/sh"]' \
--change 'WORKDIR /data' \
--change 'ENV PATH=/root/.cargo/bin:/opt/rh/devtoolset-11/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' \
"$IMAGE_FN.tar" \
"$BUILDER_IMAGE"
$PODMAN images
$PODMAN image list
$PODMAN container list
- name: Install Node
run: dnf install --assumeyes nodejs
- name: Check out repository