mirror of
https://github.com/linuxserver/docker-heimdall.git
synced 2026-04-12 05:28:14 +09:00
Compare commits
8 Commits
1a14079b-p
...
b91c5282-p
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0ed8c45ca | ||
|
|
c92bccc89e | ||
|
|
509bb4358d | ||
|
|
80a0db2aaf | ||
|
|
579f419f1f | ||
|
|
2883d89040 | ||
|
|
5786b2ff61 | ||
|
|
292f434ca1 |
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
@@ -82,14 +82,10 @@ pipeline {
|
||||
script{
|
||||
env.PACKAGE_TAG = sh(
|
||||
script: '''#!/bin/bash
|
||||
http_code=$(curl --write-out %{http_code} -s -o /dev/null \
|
||||
https://raw.githubusercontent.com/${LS_USER}/${LS_REPO}/development/package_versions.txt)
|
||||
if [[ "${http_code}" -ne 200 ]] ; then
|
||||
echo none
|
||||
if [ -e package_versions.txt ] ; then
|
||||
cat package_versions.txt | md5sum | cut -c1-8
|
||||
else
|
||||
curl -s \
|
||||
https://raw.githubusercontent.com/${LS_USER}/${LS_REPO}/development/package_versions.txt \
|
||||
| md5sum | cut -c1-8
|
||||
echo none
|
||||
fi''',
|
||||
returnStdout: true).trim()
|
||||
}
|
||||
@@ -121,7 +117,7 @@ pipeline {
|
||||
steps{
|
||||
script{
|
||||
env.EXT_RELEASE_CLEAN = sh(
|
||||
script: '''echo ${EXT_RELEASE} | sed 's/[~,%@+;:]//g' ''',
|
||||
script: '''echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g' ''',
|
||||
returnStdout: true).trim()
|
||||
}
|
||||
}
|
||||
@@ -342,20 +338,25 @@ pipeline {
|
||||
chmod 777 /tmp/package_versions.txt'
|
||||
elif [ "${DIST_IMAGE}" == "ubuntu" ]; then
|
||||
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'
|
||||
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 --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f development
|
||||
cp ${TEMPDIR}/package_versions.txt ${TEMPDIR}/${LS_REPO}/
|
||||
cd ${TEMPDIR}/${LS_REPO}/
|
||||
git --git-dir ${TEMPDIR}/${LS_REPO}/.git add package_versions.txt
|
||||
git --git-dir ${TEMPDIR}/${LS_REPO}/.git commit -m 'Bot Updating Package Versions'
|
||||
git --git-dir ${TEMPDIR}/${LS_REPO}/.git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
|
||||
wait
|
||||
git add package_versions.txt
|
||||
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 "Package tag updated, stopping build process"
|
||||
else
|
||||
echo "false" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}
|
||||
echo "Package tag is same as previous continue with build process"
|
||||
fi
|
||||
rm -Rf ${TEMPDIR}'''
|
||||
script{
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
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-keys alpine-keys-2.1-r1
|
||||
libressl2.7-libcrypto libressl2.7-libcrypto-2.7.4-r0
|
||||
libressl2.7-libssl libressl2.7-libssl-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
|
||||
apk-tools apk-tools-2.10.1-r0
|
||||
scanelf scanelf-1.2.3-r0
|
||||
@@ -28,7 +28,7 @@ tzdata tzdata-2018f-r0
|
||||
libuuid libuuid-2.32-r0
|
||||
apr apr-1.6.3-r1
|
||||
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
|
||||
nghttp2-libs nghttp2-libs-1.32.0-r0
|
||||
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
|
||||
libzip libzip-1.5.1-r1
|
||||
php7-zip php7-zip-7.2.13-r0
|
||||
tar tar-1.30-r0
|
||||
tar tar-1.31-r0
|
||||
|
||||
@@ -4,12 +4,6 @@
|
||||
mkdir -p \
|
||||
/config/www/{backgrounds,icons,avatars,SupportedApps}
|
||||
|
||||
# copy .env if not exists
|
||||
[[ ! -f /config/www/.env ]] && \
|
||||
cp /var/www/localhost/heimdall/.env /config/www/.env
|
||||
# set queue driver to database
|
||||
sed -i 's/QUEUE_DRIVER=sync/QUEUE_DRIVER=database/' /config/www/.env
|
||||
|
||||
# create symlinks
|
||||
|
||||
symlinks=( \
|
||||
@@ -26,6 +20,13 @@ do
|
||||
[[ ! -L "$i" ]] && ln -s /config/www/"$(basename "$i")" "$i"
|
||||
done
|
||||
|
||||
# copy .env if not exists
|
||||
[[ ! -f /config/www/.env ]] && \
|
||||
cp /var/www/localhost/heimdall/.env.example /config/www/.env && \
|
||||
php /var/www/localhost/heimdall/artisan key:generate
|
||||
# set queue driver to database
|
||||
sed -i 's/QUEUE_DRIVER=sync/QUEUE_DRIVER=database/' /config/www/.env
|
||||
|
||||
# permissions
|
||||
chown -R abc:abc \
|
||||
/config \
|
||||
|
||||
Reference in New Issue
Block a user