diff --git a/.github/workflows/deploy_test.yml b/.github/workflows/deploy_test.yml index c86f142..47b3141 100644 --- a/.github/workflows/deploy_test.yml +++ b/.github/workflows/deploy_test.yml @@ -1,28 +1,16 @@ -name: Deploy to TDT4242 server +name: Deploy Dev Environment on: push: branches: - - dev # Deploy Dev when pushing to `dev` - - staging # Deploy Staging when pushing to `staging` - - main # Deploy Prod when pushing to `main` + - main 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" jobs: deploy: runs-on: self-hosted env: - COMPOSE_FILE: ${{ github.ref == 'refs/heads/main' && 'docker-compose.yml' || github.ref == 'refs/heads/staging' && 'docker-compose.stag.yml' || 'docker-compose.dev.yml' }} + COMPOSE_FILE: 'docker-compose.dev.yml' steps: - name: Checkout repository