with remove

This commit is contained in:
Kasper Juul Hermansen 2022-08-11 01:11:25 +02:00
parent f19a708ce8
commit 596b3f1727
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -10,8 +10,10 @@ echo "running docker image"
tag="$REGISTRY/$NAME:$COMMIT_SHA" tag="$REGISTRY/$NAME:$COMMIT_SHA"
container_id=$(docker run --rm -d "$tag") container_id=$(docker run -d "$tag")
sleep 5s || docker logs "$container_id" sleep 5s
docker stop "$container_id" docker logs "$container_id"
docker stop "$container_id" && docker rm "$container_id"