feat: send log to gitea sutty/gems#2
This commit is contained in:
parent
0cd4c8ac68
commit
7f40c70b9c
2 changed files with 8 additions and 2 deletions
|
@ -26,6 +26,6 @@ COPY ./os-version.sh /usr/local/bin/os-version
|
||||||
RUN install -dm 2750 -o builder -g builder /srv/gems
|
RUN install -dm 2750 -o builder -g builder /srv/gems
|
||||||
VOLUME /srv/gems
|
VOLUME /srv/gems
|
||||||
|
|
||||||
RUN apk add --no-cache su-exec libc6-compat libstdc++ openssh-client
|
RUN apk add --no-cache su-exec libc6-compat libstdc++ openssh-client tea
|
||||||
|
|
||||||
ENTRYPOINT /bin/sh
|
ENTRYPOINT /bin/sh
|
||||||
|
|
|
@ -33,6 +33,8 @@ find build/ -type f | grep -v /.keep | nl |
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
|
echo '```' > build_log
|
||||||
|
|
||||||
HTTP_BASIC_USER="${HTTP_BASIC_USER}" \
|
HTTP_BASIC_USER="${HTTP_BASIC_USER}" \
|
||||||
HTTP_BASIC_PASSWORD="${HTTP_BASIC_PASSWORD}" \
|
HTTP_BASIC_PASSWORD="${HTTP_BASIC_PASSWORD}" \
|
||||||
SUTTY="${SUTTY}" \
|
SUTTY="${SUTTY}" \
|
||||||
|
@ -42,11 +44,15 @@ find build/ -type f | grep -v /.keep | nl |
|
||||||
EXTRA_PKGS="${EXTRA_PKGS}" \
|
EXTRA_PKGS="${EXTRA_PKGS}" \
|
||||||
EXTRA_GEMS="${EXTRA_GEMS}" \
|
EXTRA_GEMS="${EXTRA_GEMS}" \
|
||||||
GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" \
|
GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" \
|
||||||
/usr/local/bin/bootstrap
|
/usr/local/bin/bootstrap 2>&1 | tee -a build_log
|
||||||
|
|
||||||
|
echo '```' >> build_log
|
||||||
|
|
||||||
if test $? -ne 0 ; then
|
if test $? -ne 0 ; then
|
||||||
BUILT="${FAILED}"
|
BUILT="${FAILED}"
|
||||||
echo "not ok ${NUMBER} - ${GEM_NAME} ${GEM_VERSION} build failed"
|
echo "not ok ${NUMBER} - ${GEM_NAME} ${GEM_VERSION} build failed"
|
||||||
|
|
||||||
|
tea issue create -t "${GEM_NAME} ${GEM_VERSION} build failed" -d "$(cat build_log)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
Loading…
Reference in a new issue