Add option to execute script before and after rsync

This commit is contained in:
Dragan Filipovic 2023-01-02 01:02:44 +01:00
parent 0e7d8019db
commit 5dfe8ebb5a
14 changed files with 278 additions and 213 deletions

View file

@ -2,7 +2,7 @@ name: e2e Test
on:
push:
branches: [ 'main' ]
branches: [ 'feature/ssh-cmd' ]
env:
TEST_HOST_DOCKER: ./test
@ -55,7 +55,7 @@ jobs:
cat index.html
- name: e2e Test published ssh-deploy action
uses: easingthemes/ssh-deploy@v3.1.0
uses: easingthemes/ssh-deploy@feature/ssh-cmd
with:
# SSH_PRIVATE_KEY: $EXAMPLE_SSH_PRIVATE_KEY
# REMOTE_HOST: $EXAMPLE_REMOTE_HOST1
@ -64,6 +64,9 @@ jobs:
SOURCE: "test_project/"
TARGET: "/var/www/html/"
EXCLUDE: "/dist/, /node_modules/"
SCRIPT: |
SCRIPT_BEFORE: |
whoami
ls -al
SCRIPT_AFTER: |
whoami
ls -al