summaryrefslogtreecommitdiff
path: root/releases/aur/Dockerfile
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-12-17 13:53:26 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-12-17 13:53:26 -0500
commit7eb1912287b59d6e8c78727862bbdd982e7dbe5a (patch)
tree3fbd34077344b285d4adf1d94c654de115ac4d5e /releases/aur/Dockerfile
parent7938c2926338526390624a1f9004f6ad2699cd2b (diff)
Github workflow to publish to the AURaur-pub
Diffstat (limited to 'releases/aur/Dockerfile')
-rw-r--r--releases/aur/Dockerfile24
1 files changed, 24 insertions, 0 deletions
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"]