Skip to content

Commit

Permalink
Update deploy_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
amrevill authored and GitHub Enterprise committed Mar 20, 2025
1 parent ec12b7f commit 35e9c3d
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/deploy_test.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 35e9c3d

Please sign in to comment.