From cc011a46230c30471cf78ae38a1d6bbee678b526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauritz=20Skog=C3=B8y?= Date: Tue, 11 Mar 2025 12:42:21 +0100 Subject: [PATCH] Small change: not automated workflow for simplicity --- .github/workflows/deploy_dev.yml | 9 +++------ .github/workflows/update_primary_nginx.yml | 8 +++++--- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy_dev.yml b/.github/workflows/deploy_dev.yml index e83cacb..94885d1 100644 --- a/.github/workflows/deploy_dev.yml +++ b/.github/workflows/deploy_dev.yml @@ -1,9 +1,6 @@ name: Deploy to development -on: - push: - branches: - - main +on: workflow_dispatch jobs: deploy-dev: @@ -23,12 +20,12 @@ jobs: - name: Check environment variables run: env - # Stop and remove existing Docker containers + # Remove existing docker containers - name: Stop and remove existing containers run: | sudo docker compose down || true - # Pull the latest Docker images (if using remote images) + # Pull the latest Docker images - name: Pull latest Docker images run: sudo docker compose pull || true diff --git a/.github/workflows/update_primary_nginx.yml b/.github/workflows/update_primary_nginx.yml index a3477d9..3390b0a 100644 --- a/.github/workflows/update_primary_nginx.yml +++ b/.github/workflows/update_primary_nginx.yml @@ -1,9 +1,9 @@ name: Deploy nginx configuration to TDT4242 server on: - push: - branches: - - main + # push: + # branches: + # - main workflow_dispatch: jobs: @@ -14,6 +14,8 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + # This is bad practise as environment variables should be stored in a secure location, but hey it works now. + # Can be fixed through utilizing predefined custom workflow, or github runners-secrets - name: Export environment variables run: | export GROUP_ID="05"