feat: Dockerfile

This commit is contained in:
Giles Bradshaw 2020-08-28 00:37:17 +01:00
parent cee5a4339a
commit 220d39d09a
2 changed files with 10 additions and 0 deletions

4
Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
COPY run.sh /run.sh
ENTRYPOINT []
CMD /run.sh

6
run.sh Executable file
View File

@ -0,0 +1,6 @@
export PLUGIN_HOST=$SSH_HOST
export PLUGIN_USERNAME=$SSH_USER
export PLUGIN_PORT=$SSH_PORT
export PLUGIN_KEY=$SSH_KEY
export PLUGIN_PASSPHRASE=$SSH_PASSPHRASE
/bin/drone-ssh