forked from AEnterprise/rsync-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 806 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM ubuntu:22.04
# Install rsync and OpenSSH client
RUN apt-get update && apt-get install -y \
rsync \
openssh-client \
&& rm -rf /var/lib/apt/lists/*
# Allow older ssh-rsa keys (if needed)
RUN echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /etc/ssh/ssh_config
# Labels
LABEL "com.github.actions.name"="Deploy with rsync"
LABEL "com.github.actions.description"="Deploy to a remote server using rsync over ssh"
LABEL "com.github.actions.color"="green"
LABEL "com.github.actions.icon"="upload"
LABEL "repository"="https://github.com/trewknowledge/rsync-deploy"
LABEL "homepage"="https://github.com/trewknowledge/rsync-deploy"
LABEL "maintainer"="Trew Knowledge <info@trewknowledge.com>"
# Copy entrypoint
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]