Dockerfile
Raw
1FROM alpine:edge
2WORKDIR /opt
3COPY autopush.sh .
4RUN apk add git tini openssh
5#should contain a key pair
6#name of the key is is passed in via the SSH_KEY_NAME env variable, e.g. "id_rsa"
7VOLUME /ssh
8#should contain the repository to be pushed
9VOLUME /git
10ENTRYPOINT ["/sbin/tini", "--"]
11CMD ["/opt/autopush.sh"]
12