mirror of
https://github.com/CompeyDev/lune-packaging.git
synced 2025-01-09 04:09:09 +00:00
feat(packaging_aur): setup Dockerfile for GitHub CI image
This commit is contained in:
parent
e7d3958f4a
commit
65cfd9f264
1 changed files with 29 additions and 0 deletions
29
package/aur/Dockerfile
Normal file
29
package/aur/Dockerfile
Normal file
|
@ -0,0 +1,29 @@
|
|||
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
|
||||
|
||||
COPY ./package/aur/ssh_config /home/builder/.ssh/config
|
||||
|
||||
RUN chown -R builder:builder /home/builder/.ssh && \
|
||||
chmod 600 /home/builder/.ssh/* -R
|
||||
|
||||
RUN mkdir /home/builder/packaging_scripts
|
||||
|
||||
COPY publish.sh utils.sh *.PKGBUILD /home/builder/packaging_scripts
|
||||
|
||||
USER builder
|
||||
WORKDIR /home/builder
|
||||
|
||||
ENTRYPOINT ["/home/builder/packaging_scripts/publish.sh"]
|
Loading…
Reference in a new issue