initial commit
All checks were successful
ci/woodpecker/push/drone Pipeline was successful

This commit is contained in:
2023-03-31 01:45:25 -05:00
commit 70749c454f
3 changed files with 18 additions and 0 deletions

7
.drone.yml Normal file
View File

@@ -0,0 +1,7 @@
pipeline:
build-plugin:
image: docker
commands:
- cat Dockerfile | docker build -t goat-deploy-plugin -
volumes:
- /var/run/docker.sock:/var/run/docker.sock

2
Dockerfile Normal file
View File

@@ -0,0 +1,2 @@
FROM debian:latest
RUN apt-get update && apt-get -y install openssh-client

9
run Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
SOURCE=${PLUGIN_SOURCE:-.}
TARGET=$PLUGIN_TARGET
mkdir /tmp/deploy
cp -Rv $SOURCE /tmp/deploy
echo "$DEPLOY_KEY" > /tmp/deploy.rsa
chmod 0600 /tmp/deploy.rsa
scp -i /tmp/deploy.rsa -o StrictHostKeyChecking=no -r /tmp/deploy/* $TARGET