From a10c8e91722da91451fe5ec70a249e9d6a7a1394 Mon Sep 17 00:00:00 2001 From: Thomas <77514919+TB516@users.noreply.github.com> Date: Tue, 29 Jul 2025 14:27:37 -0400 Subject: [PATCH 1/8] Update build server image job --- .github/workflows/deploy-server.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deploy-server.yaml b/.github/workflows/deploy-server.yaml index 55403a187..6092b6acf 100644 --- a/.github/workflows/deploy-server.yaml +++ b/.github/workflows/deploy-server.yaml @@ -26,7 +26,6 @@ jobs: - name: Build and push Docker images uses: docker/build-push-action@v6.18.0 with: - context: . push: true tags: | ghcr.io/lookingforgrp-rit/lfg-server:latest From a9f83e9f0e9997c5b08f5c660fa92b7a389ac064 Mon Sep 17 00:00:00 2001 From: Thomas <77514919+TB516@users.noreply.github.com> Date: Tue, 29 Jul 2025 14:37:13 -0400 Subject: [PATCH 2/8] Updated upload path --- .github/workflows/deploy-server.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-server.yaml b/.github/workflows/deploy-server.yaml index 6092b6acf..e06988eca 100644 --- a/.github/workflows/deploy-server.yaml +++ b/.github/workflows/deploy-server.yaml @@ -52,7 +52,7 @@ jobs: host: ${{ secrets.SERVER_HOST }} username: ${{ secrets.SERVER_USER }} password: ${{ secrets.SERVER_PASS }} - source: ./lfg-backend.container + source: ./containers/lfg-backend.container target: ~/.config/containers/systemd/lfg-backend.container - name: Pull Image and Restart Container From 13412af43ed41e528868c717a0b6868a7bf91d93 Mon Sep 17 00:00:00 2001 From: Thomas <77514919+TB516@users.noreply.github.com> Date: Tue, 29 Jul 2025 14:40:17 -0400 Subject: [PATCH 3/8] Set deployment to overwrite existing file for server deploy --- .github/workflows/deploy-server.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-server.yaml b/.github/workflows/deploy-server.yaml index e06988eca..e4d2adca1 100644 --- a/.github/workflows/deploy-server.yaml +++ b/.github/workflows/deploy-server.yaml @@ -54,6 +54,7 @@ jobs: password: ${{ secrets.SERVER_PASS }} source: ./containers/lfg-backend.container target: ~/.config/containers/systemd/lfg-backend.container + overwrite: true - name: Pull Image and Restart Container uses: appleboy/ssh-action@v1.2.2 From 043baa82744d39ec68957d84816318797a40f302 Mon Sep 17 00:00:00 2001 From: Thomas <77514919+TB516@users.noreply.github.com> Date: Tue, 29 Jul 2025 14:47:23 -0400 Subject: [PATCH 4/8] updated deploy to use absolute path --- .github/workflows/deploy-server.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-server.yaml b/.github/workflows/deploy-server.yaml index e4d2adca1..4b9173703 100644 --- a/.github/workflows/deploy-server.yaml +++ b/.github/workflows/deploy-server.yaml @@ -53,7 +53,7 @@ jobs: username: ${{ secrets.SERVER_USER }} password: ${{ secrets.SERVER_PASS }} source: ./containers/lfg-backend.container - target: ~/.config/containers/systemd/lfg-backend.container + target: /home/${{ secrets.SERVER_USER }}/.config/containers/systemd/lfg-backend.container overwrite: true - name: Pull Image and Restart Container From 32bfc54103f1c1826d489e360773f853ad41fdf2 Mon Sep 17 00:00:00 2001 From: Thomas <77514919+TB516@users.noreply.github.com> Date: Tue, 29 Jul 2025 14:58:06 -0400 Subject: [PATCH 5/8] Changed target to be directory --- .github/workflows/deploy-server.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-server.yaml b/.github/workflows/deploy-server.yaml index 4b9173703..0a756f8fc 100644 --- a/.github/workflows/deploy-server.yaml +++ b/.github/workflows/deploy-server.yaml @@ -53,7 +53,7 @@ jobs: username: ${{ secrets.SERVER_USER }} password: ${{ secrets.SERVER_PASS }} source: ./containers/lfg-backend.container - target: /home/${{ secrets.SERVER_USER }}/.config/containers/systemd/lfg-backend.container + target: /home/${{ secrets.SERVER_USER }}/.config/containers/systemd overwrite: true - name: Pull Image and Restart Container From 09be99a52373f1a02397b4c2a18767d0d7e53f0a Mon Sep 17 00:00:00 2001 From: Thomas <77514919+TB516@users.noreply.github.com> Date: Tue, 29 Jul 2025 15:14:36 -0400 Subject: [PATCH 6/8] Updated workflow to not place whole directory in target --- .github/workflows/deploy-server.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-server.yaml b/.github/workflows/deploy-server.yaml index 0a756f8fc..c2b88a101 100644 --- a/.github/workflows/deploy-server.yaml +++ b/.github/workflows/deploy-server.yaml @@ -54,6 +54,7 @@ jobs: password: ${{ secrets.SERVER_PASS }} source: ./containers/lfg-backend.container target: /home/${{ secrets.SERVER_USER }}/.config/containers/systemd + strip_components: true overwrite: true - name: Pull Image and Restart Container From b4847362d894dfe1e862beb2c628e494013023fd Mon Sep 17 00:00:00 2001 From: Thomas <77514919+TB516@users.noreply.github.com> Date: Tue, 29 Jul 2025 15:21:03 -0400 Subject: [PATCH 7/8] Fixed strip components usage --- .github/workflows/deploy-server.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-server.yaml b/.github/workflows/deploy-server.yaml index c2b88a101..448374dd1 100644 --- a/.github/workflows/deploy-server.yaml +++ b/.github/workflows/deploy-server.yaml @@ -54,7 +54,7 @@ jobs: password: ${{ secrets.SERVER_PASS }} source: ./containers/lfg-backend.container target: /home/${{ secrets.SERVER_USER }}/.config/containers/systemd - strip_components: true + strip_components: 1 overwrite: true - name: Pull Image and Restart Container From 1cec69b7a8d5ea7c0dcf3f4084a08bb1ba9f9c9f Mon Sep 17 00:00:00 2001 From: Thomas <77514919+TB516@users.noreply.github.com> Date: Tue, 29 Jul 2025 15:24:51 -0400 Subject: [PATCH 8/8] Updated strip components again --- .github/workflows/deploy-server.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-server.yaml b/.github/workflows/deploy-server.yaml index 448374dd1..177b55785 100644 --- a/.github/workflows/deploy-server.yaml +++ b/.github/workflows/deploy-server.yaml @@ -54,7 +54,7 @@ jobs: password: ${{ secrets.SERVER_PASS }} source: ./containers/lfg-backend.container target: /home/${{ secrets.SERVER_USER }}/.config/containers/systemd - strip_components: 1 + strip_components: 2 overwrite: true - name: Pull Image and Restart Container