Compare commits
No commits in common. "d443811e1af8d3bd65d18058208995d0a0becd12" and "921dd8fe9fa8b0c9fdb35ea7c06db7e1cd185993" have entirely different histories.
d443811e1a
...
921dd8fe9f
@ -25,22 +25,14 @@ gobool_to_int() {
|
|||||||
|
|
||||||
NGX_DEBUG=$(gobool_to_int "${NGX_DEBUG:-0}" 0)
|
NGX_DEBUG=$(gobool_to_int "${NGX_DEBUG:-0}" 0)
|
||||||
case "${NGX_DEBUG}" in
|
case "${NGX_DEBUG}" in
|
||||||
0 )
|
0 ) img="docker.io/rockdrilla/angie-conv:${IMAGE_VERSION}-${ANGIE_VERSION}" ;;
|
||||||
img="docker.io/rockdrilla/angie-conv:${IMAGE_VERSION}"
|
1 ) img="docker.io/rockdrilla/angie-conv:${IMAGE_VERSION}-${ANGIE_VERSION}-debug" ;;
|
||||||
img_fq="docker.io/rockdrilla/angie-conv:${IMAGE_VERSION}-${ANGIE_VERSION}"
|
|
||||||
;;
|
|
||||||
1 )
|
|
||||||
img="docker.io/rockdrilla/angie-conv:${IMAGE_VERSION}-debug"
|
|
||||||
img_fq="docker.io/rockdrilla/angie-conv:${IMAGE_VERSION}-${ANGIE_VERSION}-debug"
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
buildah bud \
|
exec buildah bud \
|
||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
-t "${img_fq}" \
|
-t "${img}" \
|
||||||
--env "ANGIE_VERSION=${ANGIE_VERSION}" \
|
--env "ANGIE_VERSION=${ANGIE_VERSION}" \
|
||||||
--env "NGX_DEBUG=${NGX_DEBUG}" \
|
--env "NGX_DEBUG=${NGX_DEBUG}" \
|
||||||
--pull=missing --no-cache \
|
--pull=missing --no-cache \
|
||||||
--build-arg "IMAGE_VERSION=${IMAGE_VERSION}" \
|
--build-arg "IMAGE_VERSION=${IMAGE_VERSION}" \
|
||||||
|
|
||||||
podman tag "${img_fq}" "${img}"
|
|
||||||
|
@ -3,5 +3,5 @@
|
|||||||
unset IEP_ROOT
|
unset IEP_ROOT
|
||||||
IEP_ROOT=1
|
IEP_ROOT=1
|
||||||
# [ "$(env stat -Lc %u /proc/$$)" = 0 ] || IEP_ROOT=0
|
# [ "$(env stat -Lc %u /proc/$$)" = 0 ] || IEP_ROOT=0
|
||||||
[ "$(id -u)" = 0 ] || IEP_ROOT=0
|
[ "$(id -n)" = 0 ] || IEP_ROOT=0
|
||||||
export IEP_ROOT
|
export IEP_ROOT
|
||||||
|
Loading…
Reference in New Issue
Block a user