From 9f139980e50f0b873a360b8cfbe8502698495071 Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar 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 608705d951887cb808b4a2ff7ada11782ab5e580 Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar 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 5ea4ac257b98ef6edcbeafbd43e2c0f2f92916d3 Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar 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 fb1e844235127d07df75493b7dc101ce021efa23 Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar 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 2cfd7006943cdc68bf53e027fa2e6ca8282434cf Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar 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 19f3adf84ccc6e5f4df2359aa9118d414c70fa42 Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar 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 }}