Skip to content

Commit fe6a7f3

Browse files
Update deploy-docker.yml
fixing issue with docker ps old container lookup.
1 parent e45cfdc commit fe6a7f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/deploy-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262

6363
- name: Stop and remove old container (if running)
6464
run: |
65-
OLD_CONTAINER_ID=$(docker ps -q --filter ancestor=codebuilder-webapp:latest)
65+
OLD_CONTAINER_ID=$(docker ps -aq --filter name=codebuilder-webapp)
6666
if [ -n "$OLD_CONTAINER_ID" ]; then
6767
echo "Stopping and removing container $OLD_CONTAINER_ID..."
6868
docker stop $OLD_CONTAINER_ID

0 commit comments

Comments
 (0)