Skip to content

Commit

Permalink
Sus running container again
Browse files Browse the repository at this point in the history
  • Loading branch information
kek20009 committed Oct 31, 2024
1 parent 2e4c823 commit 1e771f4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ms5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@ jobs:
run: |
docker build -t api-image -f Backend/dockerfile .
#Check if API Container is running
- name: is container running?
run: |
if [ "$(docker ps -q -f name=api-container)" ]; then
echo "Stopping existing API container..."
docker stop api-container
fi
if [ "$(docker ps -aq -f status=exited -f name=api-container)" ]; then
echo "Removing existing API container..."
docker rm api-container
fi
# Stop and Remove Existing Container (if any). this was the error
- name: Stop and Remove Existing API Container
run: |
Expand Down

0 comments on commit 1e771f4

Please sign in to comment.