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"