From fb08ba652a2d521e752c2815eff3d96f41edfbaf Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 21 Nov 2023 09:47:12 +0100 Subject: [PATCH 1/6] verbose --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c5744b0..d5c95fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: remote-user: stats private-ssh-key: ${{ secrets.SSH_KEY }} destination-path: ${{ env.DESTINATION }} - rsync-options: --no-times -r -v --exclude=.git* --exclude=*.json --exclude=.git/ --exclude=.github/ --exclude=config.php + rsync-options: --no-times -r --exclude=.git* --exclude=*.json --exclude=.git/ --exclude=.github/ --exclude=config.php - name: LINK TO WEBSITE run: | if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then From 3bf7ae7e21578861d804a45d13aadd578a9d4572 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 21 Nov 2023 09:49:01 +0100 Subject: [PATCH 2/6] hide unknownhosterfile --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d5c95fc..d45f3c5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: remote-user: stats private-ssh-key: ${{ secrets.SSH_KEY }} destination-path: ${{ env.DESTINATION }} - rsync-options: --no-times -r --exclude=.git* --exclude=*.json --exclude=.git/ --exclude=.github/ --exclude=config.php + rsync-options: --no-times -r --exclude=.git* --exclude=*.json --exclude=.git/ --exclude=.github/ --exclude=config.php -o UserKnownHostsFile=/dev/null - name: LINK TO WEBSITE run: | if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then From 0764e94c2f12730f82f869db4ed358777efaaab4 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 21 Nov 2023 09:51:05 +0100 Subject: [PATCH 3/6] ssh options --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d45f3c5..460723a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,8 @@ jobs: remote-user: stats private-ssh-key: ${{ secrets.SSH_KEY }} destination-path: ${{ env.DESTINATION }} - rsync-options: --no-times -r --exclude=.git* --exclude=*.json --exclude=.git/ --exclude=.github/ --exclude=config.php -o UserKnownHostsFile=/dev/null + rsync-options: --no-times -r --exclude=.git* --exclude=*.json --exclude=.git/ --exclude=.github/ --exclude=config.php + ssh-options: -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR - name: LINK TO WEBSITE run: | if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then From 2dc814478052975202090139e683ef2802fd79f7 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 21 Nov 2023 09:52:25 +0100 Subject: [PATCH 4/6] ssh options in rsync --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 460723a..4ecad3a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,8 +29,7 @@ jobs: remote-user: stats private-ssh-key: ${{ secrets.SSH_KEY }} destination-path: ${{ env.DESTINATION }} - rsync-options: --no-times -r --exclude=.git* --exclude=*.json --exclude=.git/ --exclude=.github/ --exclude=config.php - ssh-options: -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR + rsync-options: --no-times -r --exclude=.git* --exclude=*.json --exclude=.git/ --exclude=.github/ --exclude=config.php 'ssh -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR' - name: LINK TO WEBSITE run: | if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then From 3dc16dbd5de5ec48206bba585b6e161307e2d1d3 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 21 Nov 2023 09:55:06 +0100 Subject: [PATCH 5/6] host --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4ecad3a..d5c95fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: remote-user: stats private-ssh-key: ${{ secrets.SSH_KEY }} destination-path: ${{ env.DESTINATION }} - rsync-options: --no-times -r --exclude=.git* --exclude=*.json --exclude=.git/ --exclude=.github/ --exclude=config.php 'ssh -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR' + rsync-options: --no-times -r --exclude=.git* --exclude=*.json --exclude=.git/ --exclude=.github/ --exclude=config.php - name: LINK TO WEBSITE run: | if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then From 00bf93f5b4c77d73ac9747b1cdb39eab89d62ac8 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 21 Nov 2023 10:08:06 +0100 Subject: [PATCH 6/6] dest server var --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d5c95fc..b3ae4e0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: - name: Sync Files from ${{ github.ref }} uses: SamKirkland/web-deploy@v1 with: - target-server: 86.93.122.67 + target-server: ${{ secrets.DEST_SERVER }} remote-user: stats private-ssh-key: ${{ secrets.SSH_KEY }} destination-path: ${{ env.DESTINATION }}