Skip to content

Commit

Permalink
remove dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilOrv committed Apr 1, 2025
1 parent dd9d3cc commit 82a8bae
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: Deploy to TDT4242 server development

on:
push:
branches: [ "production" ]
branches: ["production"]
pull_request:
branches: [ "production" ]
branches: ["production"]

jobs:
deploy:
runs-on: self-hosted
env:
REPO_NAME: ${{ github.event.repository.name }}
COMPOSE_FILE: "docker-compose.yml"

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -21,7 +21,7 @@ jobs:
with:
export-variables: true
keys-case: bypass

- name: Check status of config file
run: |
env
Expand All @@ -31,13 +31,12 @@ jobs:
- name: Run tests
run: |
docker-compose -f docker-compose.stag.yml up --build -d
docker compose -f docker-compose.stag.yml up --build -d
docker exec secfit_stag_backend python manage.py test tests || exit 1
docker-compose -f docker-compose.stag.yml down
docker compose -f docker-compose.stag.yml down
- name: Build and run docker image
- 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

0 comments on commit 82a8bae

Please sign in to comment.