SHA256
Compare commits
3
Commits
f6b016bbec
...
c3bb4bde9c
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
c3bb4bde9c | ||
|
|
0a013aa05a | ||
|
|
16c5046636 |
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
repodir=$1
|
||||
reponame=kira-base
|
||||
pattern="*.pkg.tar.zst"
|
||||
|
||||
# Combine directory and pattern.
|
||||
# Quote the directory to handle spaces, leave pattern unquoted for expansion.
|
||||
for pkgfile in "$repodir"/$pattern; do
|
||||
# CRITICAL: Check if file exists.
|
||||
# If no files match, 'sh' returns the literal string (e.g., /dir/*.txt)
|
||||
if [ -e "$pkgfile" ]; then
|
||||
echo "Signing $pkgfile"
|
||||
repo-add --verify --sign "$repodir"/"$reponame".db.tar.gz "${pkgfile}"
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
@@ -1,11 +1,32 @@
|
||||
FROM artixlinux/artixlinux:base-dinit
|
||||
|
||||
|
||||
# Add kira-base repo
|
||||
RUN pacman-key --init \
|
||||
&& pacman-key --recv-keys CAF78E41A83A6D64 \
|
||||
&& pacman-key --lsign-key CAF78E41A83A6D64 \
|
||||
&& printf '[kira-base]\nSigLevel = Required TrustedOnly\nServer = https://repos.kira-linux.org/kira-base/x86_64\n' >> /etc/pacman.conf \
|
||||
&& pacman -Sy
|
||||
|
||||
# Update system
|
||||
RUN pacman -Suyy --noconfirm
|
||||
|
||||
# Install necessary build tools
|
||||
RUN pacman -Suy --noconfirm base-devel git wget sudo make pacman-contrib
|
||||
RUN pacman -Suy --noconfirm base-devel git wget sudo make pacman-contrib binutils rust rust-bindgen rust-src libgcc graphviz imagemagick python python-sphinx python-yaml texlive-latexextra
|
||||
|
||||
|
||||
# Clean pacman cache
|
||||
RUN pacman -Scc
|
||||
|
||||
# Recieve Linus and Greg keys for linux kernel sources
|
||||
RUN gpg --recv-keys 647F28654894E3BD457199BE38DBBDC86092693E ABAF11C65A2970B130ABE3C479BE3E4300411886
|
||||
|
||||
# Config to use 16 thread for building
|
||||
RUN printf 'MAKEFLAGS="-j16"\n' > /etc/makepkg.conf.d/j16.conf
|
||||
|
||||
# Add packager
|
||||
RUN printf 'PACKAGER="Build Bee <hive@kira-linux.org>"\n' > /etc/makepkg.conf.d/77-packager.conf
|
||||
|
||||
# Create a build user
|
||||
RUN useradd -m builduser \
|
||||
&& passwd -d builduser \
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
echo "Package src dir: $1"
|
||||
echo "Package bin dir: $2"
|
||||
docker run --interactive --tty --rm --volume $1:/pkgsrc:z --volume $2:/artifact:z artix-build-env bash -c "cp /pkgsrc/* ./ && makepkg -Ccsf --noconfirm && cp *.pkg.tar.zst /artifact/"
|
||||
docker run --interactive --tty --rm --volume $1:/pkgsrc:z --volume $2:/artifact:z artix-build-env bash -c "sudo pacman -Sy --noconfirm && cp -r /pkgsrc/* ./ && makepkg -Ccsf --noconfirm && cp *.pkg.tar.zst /artifact/"
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
repodir=$1
|
||||
pattern="*.pkg.tar.zst"
|
||||
|
||||
# Combine directory and pattern.
|
||||
# Quote the directory to handle spaces, leave pattern unquoted for expansion.
|
||||
for pkgfile in "$repodir"/$pattern; do
|
||||
# CRITICAL: Check if file exists.
|
||||
# If no files match, 'sh' returns the literal string (e.g., /dir/*.txt)
|
||||
if [ -e "$pkgfile" ]; then
|
||||
echo "Signing $pkgfile"
|
||||
gpg --use-agent --output "${pkgfile}".sig --detach-sig "${pkgfile}"
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user