Skip to content

Commit

Permalink
Create run_tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
malenelu authored and GitHub Enterprise committed Apr 1, 2025
1 parent f2dba01 commit c778aad
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy to TDT4242 server development

on:
workflow_dispatch:

jobs:
deploy:
runs-on: self-hosted
env:
REPO_NAME: ${{ github.event.repository.name }}
COMPOSE_FILE: ${{ github.event.inputs.config }}

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Dotenv Action
uses: falti/dotenv-action@v1.1.4
with:
export-variables: true
keys-case: bypass

- name: Check status of config file
run: |
env
docker compose version
cd $GITHUB_WORKSPACE
docker compose -f docker-compose.stag.yml --verbose config && printf "OK\n" || exit 1
- name: Build and run docker image for tests
run: docker compose -f docker-compose.stag.yml up --force-recreate --build -d

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

0 comments on commit c778aad

Please sign in to comment.