Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-baseimage-ubuntu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Prosper
docker-baseimage-ubuntu
Commits
12757de4
Commit
12757de4
authored
4 years ago
by
Eric Nemchik
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/bionic' into
s6-2
.2.0.0-bionic
parents
e3d6739c
def3e3fb
No related branches found
Branches containing commit
Tags
e4540f39-ls5
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
Jenkinsfile
+58
-13
58 additions, 13 deletions
Jenkinsfile
package_versions.txt
+6
-6
6 additions, 6 deletions
package_versions.txt
with
65 additions
and
19 deletions
.gitignore
+
1
−
0
View file @
12757de4
...
@@ -41,3 +41,4 @@ $RECYCLE.BIN/
...
@@ -41,3 +41,4 @@ $RECYCLE.BIN/
Network Trash Folder
Network Trash Folder
Temporary Items
Temporary Items
.apdisk
.apdisk
.jenkins-external
This diff is collapsed.
Click to expand it.
Jenkinsfile
+
58
−
13
View file @
12757de4
...
@@ -229,10 +229,53 @@ pipeline {
...
@@ -229,10 +229,53 @@ pipeline {
TEMPDIR=$(mktemp -d)
TEMPDIR=$(mktemp -d)
docker pull ghcr.io/linuxserver/jenkins-builder:latest
docker pull ghcr.io/linuxserver/jenkins-builder:latest
docker run --rm -e CONTAINER_NAME=${CONTAINER_NAME} -e GITHUB_BRANCH=bionic -v ${TEMPDIR}:/ansible/jenkins ghcr.io/linuxserver/jenkins-builder:latest
docker run --rm -e CONTAINER_NAME=${CONTAINER_NAME} -e GITHUB_BRANCH=bionic -v ${TEMPDIR}:/ansible/jenkins ghcr.io/linuxserver/jenkins-builder:latest
# Stage 1 - Jenkinsfile update
if [[ "$(md5sum Jenkinsfile | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile | awk '{ print $1 }')" ]]; then
mkdir -p ${TEMPDIR}/repo
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
cd ${TEMPDIR}/repo/${LS_REPO}
git checkout -f bionic
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile ${TEMPDIR}/repo/${LS_REPO}/
git add Jenkinsfile
git commit -m 'Bot Updating Templated Files'
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
echo "Updating Jenkinsfile"
rm -Rf ${TEMPDIR}
exit 0
else
echo "Jenkinsfile is up to date."
fi
# Stage 2 - Delete old templates
OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md"
for i in ${OLD_TEMPLATES}; do
if [[ -f "${i}" ]]; then
TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
fi
done
if [[ -n "${TEMPLATES_TO_DELETE}" ]]; then
mkdir -p ${TEMPDIR}/repo
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
cd ${TEMPDIR}/repo/${LS_REPO}
git checkout -f bionic
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
for i in ${TEMPLATES_TO_DELETE}; do
git rm "${i}"
done
git commit -m 'Bot Updating Templated Files'
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
echo "Deleting old templates"
rm -Rf ${TEMPDIR}
exit 0
else
echo "No templates to delete"
fi
# Stage 3 - Update templates
CURRENTHASH=$(grep -hs ^ ${TEMPLATED_FILES} | md5sum | cut -c1-8)
CURRENTHASH=$(grep -hs ^ ${TEMPLATED_FILES} | md5sum | cut -c1-8)
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
NEWHASH=$(grep -hs ^ ${TEMPLATED_FILES} | md5sum | cut -c1-8)
NEWHASH=$(grep -hs ^ ${TEMPLATED_FILES} | md5sum | cut -c1-8)
if [[ "${CURRENTHASH}" != "${NEWHASH}" ]]; then
if [[ "${CURRENTHASH}" != "${NEWHASH}" ]]
|| ! grep -q '.jenkins-external' "${WORKSPACE}/.gitignore" 2>/dev/null
; then
mkdir -p ${TEMPDIR}/repo
mkdir -p ${TEMPDIR}/repo
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
cd ${TEMPDIR}/repo/${LS_REPO}
cd ${TEMPDIR}/repo/${LS_REPO}
...
@@ -240,11 +283,13 @@ pipeline {
...
@@ -240,11 +283,13 @@ pipeline {
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/workflows
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/workflows
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/ISSUE_TEMPLATE
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/ISSUE_TEMPLATE
rm -f ${TEMPDIR}/repo/${LS_REPO}/.github/ISSUE_TEMPLATE.md
cp --parents ${TEMPLATED_FILES} ${TEMPDIR}/repo/${LS_REPO}/ || :
cp --parents ${TEMPLATED_FILES} ${TEMPDIR}/repo/${LS_REPO}/ || :
cd ${TEMPDIR}/repo/${LS_REPO}/
cd ${TEMPDIR}/repo/${LS_REPO}/
if ! grep -q '.jenkins-external' .gitignore 2>/dev/null; then
echo ".jenkins-external" >> .gitignore
git add .gitignore
fi
git add ${TEMPLATED_FILES}
git add ${TEMPLATED_FILES}
git rm .github/ISSUE_TEMPLATE.md || :
git commit -m 'Bot Updating Templated Files'
git commit -m 'Bot Updating Templated Files'
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
...
@@ -253,8 +298,8 @@ pipeline {
...
@@ -253,8 +298,8 @@ pipeline {
fi
fi
mkdir -p ${TEMPDIR}/gitbook
mkdir -p ${TEMPDIR}/gitbook
git clone https://github.com/linuxserver/docker-documentation.git ${TEMPDIR}/gitbook/docker-documentation
git clone https://github.com/linuxserver/docker-documentation.git ${TEMPDIR}/gitbook/docker-documentation
if [[ ("${BRANCH_NAME}" == "master") || ("${BRANCH_NAME}" == "main") ]] && [[ (! -f ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md) || ("$(md5sum ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')") ]]; then
if [[ ("${BRANCH_NAME}" == "master") || ("${BRANCH_NAME}" == "main") ]] && [[ (! -f ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md) || ("$(md5sum ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/
.jenkins-external/
docker-${CONTAINER_NAME}.md | awk '{ print $1 }')") ]]; then
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/docker-${CONTAINER_NAME}.md ${TEMPDIR}/gitbook/docker-documentation/images/
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/
.jenkins-external/
docker-${CONTAINER_NAME}.md ${TEMPDIR}/gitbook/docker-documentation/images/
cd ${TEMPDIR}/gitbook/docker-documentation/
cd ${TEMPDIR}/gitbook/docker-documentation/
git add images/docker-${CONTAINER_NAME}.md
git add images/docker-${CONTAINER_NAME}.md
git commit -m 'Bot Updating Documentation'
git commit -m 'Bot Updating Documentation'
...
@@ -479,7 +524,7 @@ pipeline {
...
@@ -479,7 +524,7 @@ pipeline {
}
}
sh
'''#! /bin/bash
sh
'''#! /bin/bash
set -e
set -e
docker pull ghcr.io/linuxserver/
lsiodev-
ci:latest
docker pull ghcr.io/linuxserver/ci:latest
if [ "${MULTIARCH}" == "true" ]; then
if [ "${MULTIARCH}" == "true" ]; then
docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER}
docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER}
docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}
docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}
...
@@ -504,7 +549,7 @@ pipeline {
...
@@ -504,7 +549,7 @@ pipeline {
-e WEB_PATH=\"${CI_WEBPATH}\" \
-e WEB_PATH=\"${CI_WEBPATH}\" \
-e DO_REGION="ams3" \
-e DO_REGION="ams3" \
-e DO_BUCKET="lsio-ci" \
-e DO_BUCKET="lsio-ci" \
-t ghcr.io/linuxserver/
lsiodev-
ci:latest \
-t ghcr.io/linuxserver/ci:latest \
python /ci/ci.py'''
python /ci/ci.py'''
}
}
}
}
...
@@ -646,9 +691,9 @@ pipeline {
...
@@ -646,9 +691,9 @@ pipeline {
environment
name:
'EXIT_STATUS'
,
value:
''
environment
name:
'EXIT_STATUS'
,
value:
''
}
}
steps
{
steps
{
echo
"Pushing New tag for current commit ${
EXT_RELEASE_CLEAN}-ls${LS_TAG_NUMBER
}"
echo
"Pushing New tag for current commit ${
META_TAG
}"
sh
'''curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/git/tags \
sh
'''curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/git/tags \
-d '{"tag":"'${
EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER
}'",\
-d '{"tag":"'${
META_TAG
}'",\
"object": "'${COMMIT_SHA}'",\
"object": "'${COMMIT_SHA}'",\
"message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to bionic",\
"message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to bionic",\
"type": "commit",\
"type": "commit",\
...
@@ -656,9 +701,9 @@ pipeline {
...
@@ -656,9 +701,9 @@ pipeline {
echo
"Pushing New release for Tag"
echo
"Pushing New release for Tag"
sh
'''#! /bin/bash
sh
'''#! /bin/bash
echo "Updating base packages to ${PACKAGE_TAG}" > releasebody.json
echo "Updating base packages to ${PACKAGE_TAG}" > releasebody.json
echo '{"tag_name":"'${
EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER
}'",\
echo '{"tag_name":"'${
META_TAG
}'",\
"target_commitish": "bionic",\
"target_commitish": "bionic",\
"name": "'${
EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER
}'",\
"name": "'${
META_TAG
}'",\
"body": "**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n**OS Changes:**\\n\\n' > start
"body": "**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n**OS Changes:**\\n\\n' > start
printf '","draft": false,"prerelease": false}' >> releasebody.json
printf '","draft": false,"prerelease": false}' >> releasebody.json
paste -d'\\0' start releasebody.json > releasebody.json.done
paste -d'\\0' start releasebody.json > releasebody.json.done
...
@@ -685,7 +730,7 @@ pipeline {
...
@@ -685,7 +730,7 @@ pipeline {
TEMPDIR=$(mktemp -d)
TEMPDIR=$(mktemp -d)
docker pull ghcr.io/linuxserver/jenkins-builder:latest
docker pull ghcr.io/linuxserver/jenkins-builder:latest
docker run --rm -e CONTAINER_NAME=${CONTAINER_NAME} -e GITHUB_BRANCH="${BRANCH_NAME}" -v ${TEMPDIR}:/ansible/jenkins ghcr.io/linuxserver/jenkins-builder:latest
docker run --rm -e CONTAINER_NAME=${CONTAINER_NAME} -e GITHUB_BRANCH="${BRANCH_NAME}" -v ${TEMPDIR}:/ansible/jenkins ghcr.io/linuxserver/jenkins-builder:latest
docker pull ghcr.io/linuxserver/
lsiodev-
readme-sync
docker pull ghcr.io/linuxserver/readme-sync
docker run --rm=true \
docker run --rm=true \
-e DOCKERHUB_USERNAME=$DOCKERUSER \
-e DOCKERHUB_USERNAME=$DOCKERUSER \
-e DOCKERHUB_PASSWORD=$DOCKERPASS \
-e DOCKERHUB_PASSWORD=$DOCKERPASS \
...
@@ -693,7 +738,7 @@ pipeline {
...
@@ -693,7 +738,7 @@ pipeline {
-e DOCKER_REPOSITORY=${IMAGE} \
-e DOCKER_REPOSITORY=${IMAGE} \
-e GIT_BRANCH=master \
-e GIT_BRANCH=master \
-v ${TEMPDIR}/docker-${CONTAINER_NAME}:/mnt \
-v ${TEMPDIR}/docker-${CONTAINER_NAME}:/mnt \
ghcr.io/linuxserver/
lsiodev-
readme-sync bash -c 'node sync'
ghcr.io/linuxserver/readme-sync bash -c 'node sync'
rm -Rf ${TEMPDIR} '''
rm -Rf ${TEMPDIR} '''
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
package_versions.txt
+
6
−
6
View file @
12757de4
...
@@ -6,7 +6,7 @@ base-passwd3.5.44
...
@@ -6,7 +6,7 @@ base-passwd3.5.44
bash4.4.18-2ubuntu1.2
bash4.4.18-2ubuntu1.2
bsdutils1:2.31.1-0.4ubuntu3.7
bsdutils1:2.31.1-0.4ubuntu3.7
bzip21.0.6-8.1ubuntu0.2
bzip21.0.6-8.1ubuntu0.2
ca-certificates202
0
10
27ubuntu0.
18.04.1
ca-certificates20210
119~
18.04.1
coreutils8.28-1ubuntu1
coreutils8.28-1ubuntu1
curl7.58.0-2ubuntu3.12
curl7.58.0-2ubuntu3.12
dash0.5.8-2.10
dash0.5.8-2.10
...
@@ -29,8 +29,8 @@ libapt-inst2.01.6.12ubuntu0.2
...
@@ -29,8 +29,8 @@ libapt-inst2.01.6.12ubuntu0.2
libapt-pkg5.01.6.12ubuntu0.2
libapt-pkg5.01.6.12ubuntu0.2
libasn1-8-heimdal7.5.0+dfsg-1
libasn1-8-heimdal7.5.0+dfsg-1
libattr11:2.4.47-2build1
libattr11:2.4.47-2build1
libaudit11:2.8.2-1ubuntu1
libaudit11:2.8.2-1ubuntu1
.1
libaudit-common1:2.8.2-1ubuntu1
libaudit-common1:2.8.2-1ubuntu1
.1
libblkid12.31.1-0.4ubuntu3.7
libblkid12.31.1-0.4ubuntu3.7
libbz2-1.01.0.6-8.1ubuntu0.2
libbz2-1.01.0.6-8.1ubuntu0.2
libc62.27-3ubuntu1.4
libc62.27-3ubuntu1.4
...
@@ -61,8 +61,8 @@ libkeyutils11.5.9-9.2ubuntu2
...
@@ -61,8 +61,8 @@ libkeyutils11.5.9-9.2ubuntu2
libkrb5-26-heimdal7.5.0+dfsg-1
libkrb5-26-heimdal7.5.0+dfsg-1
libkrb5-31.16-2ubuntu0.2
libkrb5-31.16-2ubuntu0.2
libkrb5support01.16-2ubuntu0.2
libkrb5support01.16-2ubuntu0.2
libldap-2.4-22.4.45+dfsg-1ubuntu1.
8
libldap-2.4-22.4.45+dfsg-1ubuntu1.
9
libldap-common2.4.45+dfsg-1ubuntu1.
8
libldap-common2.4.45+dfsg-1ubuntu1.
9
liblz4-10.0~r131-2ubuntu3
liblz4-10.0~r131-2ubuntu3
liblzma55.2.2-1.3
liblzma55.2.2-1.3
libmount12.31.1-0.4ubuntu3.7
libmount12.31.1-0.4ubuntu3.7
...
@@ -117,7 +117,7 @@ sed4.4-2
...
@@ -117,7 +117,7 @@ sed4.4-2
sensible-utils0.0.12
sensible-utils0.0.12
sysvinit-utils2.88dsf-59.10ubuntu1
sysvinit-utils2.88dsf-59.10ubuntu1
tar1.29b-2ubuntu0.2
tar1.29b-2ubuntu0.2
tzdata202
0f
-0ubuntu0.18.04
tzdata202
1a
-0ubuntu0.18.04
ubuntu-keyring2018.09.18.1~18.04.0
ubuntu-keyring2018.09.18.1~18.04.0
util-linux2.31.1-0.4ubuntu3.7
util-linux2.31.1-0.4ubuntu3.7
zlib1g1:1.2.11.dfsg-0ubuntu2
zlib1g1:1.2.11.dfsg-0ubuntu2
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment