From 5e4c28628757be732e58613ae1a668fdd5bc00d3 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 15 May 2019 00:31:53 +0800 Subject: [PATCH] feat: initial --- Dockerfile | 16 ++++++++++++++++ README.md | 1 + entrypoint.sh | 7 +++++++ 3 files changed, 24 insertions(+) create mode 100644 Dockerfile create mode 100755 entrypoint.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2d9ece9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM appleboy/drone-ssh + +# Github labels +LABEL "com.github.actions.name"="SSH Commands" +LABEL "com.github.actions.description"="Executing remote ssh commands" +LABEL "com.github.actions.icon"="terminal" +LABEL "com.github.actions.color"="gray-dark" + +LABEL "repository"="https://github.com/appleboy/ssh-action" +LABEL "homepage"="https://github.com/appleboy" +LABEL "maintainer"="Bo-Yi Wu " +LABEL "version"="0.0.1" + +ADD entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] diff --git a/README.md b/README.md index fdea367..3e1deaa 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # ssh-action + GitHub Action for executing remote ssh commands. diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000..f880594 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +set -eu + +export GITHUB="true" + +sh -c "/bin/drone-ssh $*"