From 35e9c3d7084e23789b76fb749db94a07410ed0e3 Mon Sep 17 00:00:00 2001 From: Ann-Marie Aeronuwy Francoise Revillard Date: Thu, 20 Mar 2025 20:19:50 +0100 Subject: [PATCH] Update deploy_test.yml --- .github/workflows/deploy_test.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy_test.yml b/.github/workflows/deploy_test.yml index a14f485..1570f22 100644 --- a/.github/workflows/deploy_test.yml +++ b/.github/workflows/deploy_test.yml @@ -1,24 +1,17 @@ name: Deploy to TDT4242 server development on: - workflow_dispatch: - inputs: - config: - description: "Which compose config file to deploy" - required: true - default: "docker-compose.dev.yml" - type: choice - options: - - "docker-compose.dev.yml" - - "docker-compose.stag.yml" - - "docker-compose.yml" + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] jobs: deploy: runs-on: self-hosted env: REPO_NAME: ${{ github.event.repository.name }} - COMPOSE_FILE: ${{ github.event.inputs.config }} + COMPOSE_FILE: "docker-compose.yml" steps: - name: Checkout repository