diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-12-17 14:01:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-17 14:01:04 -0500 |
commit | f15a7a3ed8821d35874b36bd159a8bd9ec83aef5 (patch) | |
tree | 0dc8fd4ff92c3ecbe2c048e1c07a8bee9d805358 /releases/aur/Dockerfile | |
parent | 2b7ddc70911e54a040e4e73a6cf5537516ab8f20 (diff) |
Github workflow to publish to the AUR (#25)
Diffstat (limited to 'releases/aur/Dockerfile')
-rw-r--r-- | releases/aur/Dockerfile | 24 |
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"] |