Skip to content

Commit

Permalink
Update deploy_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Cicinelli authored and GitHub Enterprise committed Mar 13, 2025
1 parent 8b4ee88 commit 368cd83
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/deploy_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ jobs:
runs-on: self-hosted
env:
REPO_NAME: ${{ github.event.repository.name }}
COMPOSE_FILE: ${{ github.event.inputs.config }}
COMPOSE_FILE: ${{ github.event.inputs.config || 'docker-compose.dev.yml' }} # Fix: Ensure a default value

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Dotenv Action
uses: falti/dotenv-action@v1.1.4
with:
Expand All @@ -32,12 +33,5 @@ jobs:
- name: Check status of config file
run: |
env
docker compose version
cd $GITHUB_WORKSPACE
docker compose -f $COMPOSE_FILE --verbose config && printf "OK\n" || exit 1
- name: Build and run docker image
run: docker compose -f $COMPOSE_FILE up --force-recreate --build -d

- name: Verify that gateway is available
run: docker ps
doc

0 comments on commit 368cd83

Please sign in to comment.