Skip to content

Commit 5e4c286

Browse files
committed
feat: initial
1 parent 71cf4ba commit 5e4c286

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM appleboy/drone-ssh
2+
3+
# Github labels
4+
LABEL "com.github.actions.name"="SSH Commands"
5+
LABEL "com.github.actions.description"="Executing remote ssh commands"
6+
LABEL "com.github.actions.icon"="terminal"
7+
LABEL "com.github.actions.color"="gray-dark"
8+
9+
LABEL "repository"="https://github.com/appleboy/ssh-action"
10+
LABEL "homepage"="https://github.com/appleboy"
11+
LABEL "maintainer"="Bo-Yi Wu <appleboy.tw@gmail.com>"
12+
LABEL "version"="0.0.1"
13+
14+
ADD entrypoint.sh /entrypoint.sh
15+
RUN chmod +x /entrypoint.sh
16+
ENTRYPOINT ["/entrypoint.sh"]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# ssh-action
2+
23
GitHub Action for executing remote ssh commands.

entrypoint.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
set -eu
4+
5+
export GITHUB="true"
6+
7+
sh -c "/bin/drone-ssh $*"

0 commit comments

Comments
 (0)