From 7eb1912287b59d6e8c78727862bbdd982e7dbe5a Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Tue, 17 Dec 2024 13:53:26 -0500 Subject: Github workflow to publish to the AUR --- releases/aur/Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 releases/aur/Dockerfile (limited to 'releases/aur/Dockerfile') diff --git a/releases/aur/Dockerfile b/releases/aur/Dockerfile new file mode 100644 index 0000000..efa95a4 --- /dev/null +++ b/releases/aur/Dockerfile @@ -0,0 +1,24 @@ +FROM archlinux:latest + +# Install necessary packages for the script +RUN pacman-key init +RUN pacman -Syu --noconfirm \ + && pacman -S --noconfirm \ + git \ + wget \ + openssh \ + && rm -rf /var/cache/pacman/pkg/* + +# Set git user configuration +RUN git config --global user.name "AUR PublisherBot" \ + && git config --global user.email "benjamin+aur_release@chausse.xyz" + +# Set the working directory to /root +WORKDIR /root + +# Copy the update_aur.sh script to /usr/local/bin and set it as the entrypoint +COPY update_aur.sh /usr/local/bin/update_aur.sh +RUN chmod +x /usr/local/bin/update_aur.sh + +# Set the script as the ENTRYPOINT (or CMD if you prefer) +ENTRYPOINT ["/usr/local/bin/update_aur.sh"] -- cgit v1.2.3