checks-parser-git done, checks-parser-bin WIP

This commit is contained in:
2025-03-23 18:48:17 +03:00
parent 80e9397e01
commit e58d6068e0
11 changed files with 143 additions and 15 deletions

View File

@@ -0,0 +1,28 @@
FROM archlinux:latest
ARG pkgname=$name
ARG pkgver=$version
ARG revision
RUN mkdir -p /output
RUN pacman --noconfirm -Syu base base-devel sudo
RUN echo "sudo cp ${pkgname}-git-${pkgver}_nightly-$revision-x86_64.pkg.tar.zst /output" > /deploy.sh
RUN chmod +x /deploy.sh
RUN useradd -m builder
RUN usermod -a -G wheel builder
RUN chown -R builder:builder /output
RUN echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers
USER builder
WORKDIR /home/builder/checks-parser
COPY deploy/archlinux/git/PKGBUILD PKGBUILD
RUN sed -i "s|\$pkgname|${pkgname}-git|g" PKGBUILD
RUN sed -i "s|\$pkgver|${pkgver}_nightly|g" PKGBUILD
RUN sed -i "s|\$pkgrel|$revision|g" PKGBUILD
RUN makepkg -s --noconfirm
#ENTRYPOINT ["bash"]
ENTRYPOINT ["bash", "/deploy.sh"]