mirror of
https://github.com/linuxserver/docker-heimdall.git
synced 2026-04-20 00:25:49 +09:00
Compare commits
5 Commits
1a14079b-p
...
b91c5282-p
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0ed8c45ca | ||
|
|
c92bccc89e | ||
|
|
509bb4358d | ||
|
|
80a0db2aaf | ||
|
|
579f419f1f |
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
@@ -82,14 +82,10 @@ pipeline {
|
|||||||
script{
|
script{
|
||||||
env.PACKAGE_TAG = sh(
|
env.PACKAGE_TAG = sh(
|
||||||
script: '''#!/bin/bash
|
script: '''#!/bin/bash
|
||||||
http_code=$(curl --write-out %{http_code} -s -o /dev/null \
|
if [ -e package_versions.txt ] ; then
|
||||||
https://raw.githubusercontent.com/${LS_USER}/${LS_REPO}/development/package_versions.txt)
|
cat package_versions.txt | md5sum | cut -c1-8
|
||||||
if [[ "${http_code}" -ne 200 ]] ; then
|
|
||||||
echo none
|
|
||||||
else
|
else
|
||||||
curl -s \
|
echo none
|
||||||
https://raw.githubusercontent.com/${LS_USER}/${LS_REPO}/development/package_versions.txt \
|
|
||||||
| md5sum | cut -c1-8
|
|
||||||
fi''',
|
fi''',
|
||||||
returnStdout: true).trim()
|
returnStdout: true).trim()
|
||||||
}
|
}
|
||||||
@@ -121,7 +117,7 @@ pipeline {
|
|||||||
steps{
|
steps{
|
||||||
script{
|
script{
|
||||||
env.EXT_RELEASE_CLEAN = sh(
|
env.EXT_RELEASE_CLEAN = sh(
|
||||||
script: '''echo ${EXT_RELEASE} | sed 's/[~,%@+;:]//g' ''',
|
script: '''echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g' ''',
|
||||||
returnStdout: true).trim()
|
returnStdout: true).trim()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -342,20 +338,25 @@ pipeline {
|
|||||||
chmod 777 /tmp/package_versions.txt'
|
chmod 777 /tmp/package_versions.txt'
|
||||||
elif [ "${DIST_IMAGE}" == "ubuntu" ]; then
|
elif [ "${DIST_IMAGE}" == "ubuntu" ]; then
|
||||||
docker run --rm --entrypoint '/bin/sh' -v ${TEMPDIR}:/tmp ${LOCAL_CONTAINER} -c '\
|
docker run --rm --entrypoint '/bin/sh' -v ${TEMPDIR}:/tmp ${LOCAL_CONTAINER} -c '\
|
||||||
apt -qq list --installed | awk "{print \$1,\$2}" > /tmp/package_versions.txt && \
|
apt list -qq --installed > /tmp/package_versions.txt && \
|
||||||
chmod 777 /tmp/package_versions.txt'
|
chmod 777 /tmp/package_versions.txt'
|
||||||
fi
|
fi
|
||||||
if [ "$(md5sum ${TEMPDIR}/package_versions.txt | cut -c1-8 )" != "${PACKAGE_TAG}" ]; then
|
NEW_PACKAGE_TAG=$(md5sum ${TEMPDIR}/package_versions.txt | cut -c1-8 )
|
||||||
|
echo "Package tag sha from current packages in buit container is ${NEW_PACKAGE_TAG} comparing to old ${PACKAGE_TAG} from github"
|
||||||
|
if [ "${NEW_PACKAGE_TAG}" != "${PACKAGE_TAG}" ]; then
|
||||||
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/${LS_REPO}
|
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/${LS_REPO}
|
||||||
git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f development
|
git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f development
|
||||||
cp ${TEMPDIR}/package_versions.txt ${TEMPDIR}/${LS_REPO}/
|
cp ${TEMPDIR}/package_versions.txt ${TEMPDIR}/${LS_REPO}/
|
||||||
cd ${TEMPDIR}/${LS_REPO}/
|
cd ${TEMPDIR}/${LS_REPO}/
|
||||||
git --git-dir ${TEMPDIR}/${LS_REPO}/.git add package_versions.txt
|
wait
|
||||||
git --git-dir ${TEMPDIR}/${LS_REPO}/.git commit -m 'Bot Updating Package Versions'
|
git add package_versions.txt
|
||||||
git --git-dir ${TEMPDIR}/${LS_REPO}/.git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
|
git commit -m 'Bot Updating Package Versions'
|
||||||
|
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
|
||||||
echo "true" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}
|
echo "true" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}
|
||||||
|
echo "Package tag updated, stopping build process"
|
||||||
else
|
else
|
||||||
echo "false" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}
|
echo "false" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}
|
||||||
|
echo "Package tag is same as previous continue with build process"
|
||||||
fi
|
fi
|
||||||
rm -Rf ${TEMPDIR}'''
|
rm -Rf ${TEMPDIR}'''
|
||||||
script{
|
script{
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
musl musl-1.1.19-r10
|
musl musl-1.1.19-r10
|
||||||
busybox busybox-1.28.4-r2
|
busybox busybox-1.28.4-r3
|
||||||
alpine-baselayout alpine-baselayout-3.1.0-r0
|
alpine-baselayout alpine-baselayout-3.1.0-r0
|
||||||
alpine-keys alpine-keys-2.1-r1
|
alpine-keys alpine-keys-2.1-r1
|
||||||
libressl2.7-libcrypto libressl2.7-libcrypto-2.7.4-r0
|
libressl2.7-libcrypto libressl2.7-libcrypto-2.7.4-r0
|
||||||
libressl2.7-libssl libressl2.7-libssl-2.7.4-r0
|
libressl2.7-libssl libressl2.7-libssl-2.7.4-r0
|
||||||
libressl2.7-libtls libressl2.7-libtls-2.7.4-r0
|
libressl2.7-libtls libressl2.7-libtls-2.7.4-r0
|
||||||
ssl_client ssl_client-1.28.4-r2
|
ssl_client ssl_client-1.28.4-r3
|
||||||
zlib zlib-1.2.11-r1
|
zlib zlib-1.2.11-r1
|
||||||
apk-tools apk-tools-2.10.1-r0
|
apk-tools apk-tools-2.10.1-r0
|
||||||
scanelf scanelf-1.2.3-r0
|
scanelf scanelf-1.2.3-r0
|
||||||
@@ -28,7 +28,7 @@ tzdata tzdata-2018f-r0
|
|||||||
libuuid libuuid-2.32-r0
|
libuuid libuuid-2.32-r0
|
||||||
apr apr-1.6.3-r1
|
apr apr-1.6.3-r1
|
||||||
expat expat-2.2.5-r0
|
expat expat-2.2.5-r0
|
||||||
apr-util apr-util-1.6.1-r2
|
apr-util apr-util-1.6.1-r3
|
||||||
apache2-utils apache2-utils-2.4.35-r0
|
apache2-utils apache2-utils-2.4.35-r0
|
||||||
nghttp2-libs nghttp2-libs-1.32.0-r0
|
nghttp2-libs nghttp2-libs-1.32.0-r0
|
||||||
libssh2 libssh2-1.8.0-r3
|
libssh2 libssh2-1.8.0-r3
|
||||||
@@ -65,4 +65,4 @@ php7-pdo_sqlite php7-pdo_sqlite-7.2.13-r0
|
|||||||
php7-tokenizer php7-tokenizer-7.2.13-r0
|
php7-tokenizer php7-tokenizer-7.2.13-r0
|
||||||
libzip libzip-1.5.1-r1
|
libzip libzip-1.5.1-r1
|
||||||
php7-zip php7-zip-7.2.13-r0
|
php7-zip php7-zip-7.2.13-r0
|
||||||
tar tar-1.30-r0
|
tar tar-1.31-r0
|
||||||
|
|||||||
Reference in New Issue
Block a user