with remove
This commit is contained in:
parent
f19a708ce8
commit
596b3f1727
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user