proper container id

This commit is contained in:
Kasper Juul Hermansen 2022-08-11 01:09:16 +02:00
parent 897028f9bf
commit 7ec2518450
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -e
echo "prebuiliding docker image"
cuddle_cli x build_release
@ -8,8 +10,8 @@ echo "running docker image"
tag="$REGISTRY/$NAME:$COMMIT_SHA"
docker run --rm -d "$tag"
container_id=$(docker run --rm -d "$tag")
sleep 10s
sleep 5s
docker stop "$tag"
docker stop "$container_id"