Add run release

This commit is contained in:
Kasper Juul Hermansen 2022-08-11 01:05:47 +02:00
parent 4145445b42
commit 5e9d82df9e
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
2 changed files with 17 additions and 0 deletions

View File

@ -7,3 +7,5 @@ vars:
scripts:
build_release:
type: shell
run_release:
type: shell

15
scripts/run_release.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
echo "prebuiliding docker image"
. scripts/build_release.sh
echo "running docker image"
tag="$REGISTRY/$NAME:$COMMIT_SHA"
docker run --rm "$tag" -d
sleep 10s
docker stop "$tag"