Add run release
This commit is contained in:
parent
4145445b42
commit
5e9d82df9e
@ -7,3 +7,5 @@ vars:
|
||||
scripts:
|
||||
build_release:
|
||||
type: shell
|
||||
run_release:
|
||||
type: shell
|
||||
|
15
scripts/run_release.sh
Normal file
15
scripts/run_release.sh
Normal 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"
|
Loading…
Reference in New Issue
Block a user