Files
build1/.gitea/workflows/build.yml
T
Dominik Werder 4bd389e39d
Buildtest / build (push) Failing after 40s
Try again
2026-07-02 16:27:01 +02:00

64 lines
1.8 KiB
YAML

name: Buildtest
on:
push:
branches:
- main
pull_request:
jobs:
build:
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
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 > storage.conf <<EOF
[storage]
driver = "vfs"
graphroot = "$PODMAN_STORAGE"
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
- name: Install Node
run: dnf install --assumeyes nodejs
- name: Check out repository
uses: actions/checkout@v4