Skip to content

Commit

Permalink
Github actions stop container
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojciech-Spychala-Mobica committed Jan 31, 2024
1 parent 9a540a6 commit 5727c8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ "wasm-main" ]
pull_request:
branches: [ "wasm-main" ]
workflow_dispatch
workflow_dispatch:

jobs:

Expand All @@ -22,6 +22,7 @@ jobs:
# Check if container exist and delete
if [ "$(docker ps -a | grep -c innoextract-wasm)" -gt 0 ]; then
docker container stop $(docker container ls -a | grep 'innoextract-wasm' | awk '{print $1}')
docker container rm $(docker container ls -a | grep 'innoextract-wasm' | awk '{print $1}')
echo "[---- Deleted container innoextract-wasm]"
else
Expand Down

0 comments on commit 5727c8a

Please sign in to comment.