Commit bdcdfa44 authored by Michael Ochmann's avatar Michael Ochmann
Browse files

initial commit

parents
.idea
.vscode
.DS_Store
*.swp
from alpine
ENV AUTOGIT_USER "ONyX autogit"
ENV AUTOGIT_MAIL "noreply@mail.tld"
RUN apk --no-cache add\
git\
entr\
openssh
RUN git config --global user.name ${AUTOGIT_USER} && git config --global user.email ${AUTOGIT_MAIL}
RUN ssh-keygen -t rsa -b 4096 -f /root/.ssh/id_rsa -q -P ""
COPY ./config /root/.ssh/
COPY ./autogit /bin/
WORKDIR /var/lib/mpd/playlists
CMD ls . | entr -p autogit /_
# ONyX Playlist Autogitter
– backing up your `mpd` playlist using standard `git`
#!/bin/bash
file_changed=$(basename $1)
echo "Playlist $file_changed has changed. Performing autogit."
git add .
git commit -m "autocommit - changed $file_changed; $(date)"
git push
echo "Successfully pushed playlists to remote."
Host *
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment