2023-07-24 11:57:45 +01:00
|
|
|
FROM archlinux:base-devel
|
|
|
|
|
|
|
|
RUN pacman --needed --noconfirm -Syu \
|
|
|
|
base \
|
|
|
|
git \
|
|
|
|
pacman-contrib \
|
|
|
|
openssh
|
|
|
|
|
|
|
|
RUN useradd -m builder && \
|
|
|
|
echo "builder ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers && \
|
|
|
|
echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers && \
|
|
|
|
usermod -a -G wheel builder
|
|
|
|
|
|
|
|
RUN mkdir -p /home/builder/.ssh && \
|
|
|
|
touch /home/builder/.ssh/known_hosts
|
|
|
|
|
2023-07-24 12:21:54 +01:00
|
|
|
RUN ls /home/
|
2023-07-24 12:19:44 +01:00
|
|
|
|
2023-07-24 15:50:53 +01:00
|
|
|
COPY /home/runner/work/lune/lune/* /git_src
|
|
|
|
|
2023-07-24 12:28:50 +01:00
|
|
|
COPY /git_src/package/aur/ssh_config /home/builder/.ssh/config
|
2023-07-24 11:57:45 +01:00
|
|
|
|
|
|
|
RUN chown -R builder:builder /home/builder/.ssh && \
|
|
|
|
chmod 600 /home/builder/.ssh/* -R
|
|
|
|
|
2023-07-24 12:28:50 +01:00
|
|
|
RUN mkdir /home/builder/packaging_scripts && cd /git_src
|
2023-07-24 11:57:45 +01:00
|
|
|
|
|
|
|
COPY publish.sh utils.sh *.PKGBUILD /home/builder/packaging_scripts
|
|
|
|
|
|
|
|
USER builder
|
|
|
|
WORKDIR /home/builder
|
|
|
|
|
|
|
|
ENTRYPOINT ["/home/builder/packaging_scripts/publish.sh"]
|