Skip to content

Commit 0fdcde0

Browse files
authored
Merge pull request #268 from linuxserver/move-3.22
2 parents 23bf232 + 8561cbe commit 0fdcde0

7 files changed

Lines changed: 40 additions & 40 deletions

File tree

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
## Readme
2525

2626
If you would like to change our readme, please __**do not**__ directly edit the readme, as it is auto-generated on each commit.
27-
Instead edit the [readme-vars.yml](https://github.com/linuxserver/docker-baseimage-alpine/edit/master/readme-vars.yml).
27+
Instead edit the [readme-vars.yml](https://github.com/linuxserver/docker-baseimage-alpine/edit/3.22/readme-vars.yml).
2828

2929
These variables are used in a template for our [Jenkins Builder](https://github.com/linuxserver/docker-jenkins-builder) as part of an ansible play.
3030
Most of these variables are also carried over to [docs.linuxserver.io](https://docs.linuxserver.io)
@@ -115,7 +115,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
115115

116116
## Update the changelog
117117

118-
If you are modifying the Dockerfiles or any of the startup scripts in [root](https://github.com/linuxserver/docker-baseimage-alpine/tree/master/root), add an entry to the changelog
118+
If you are modifying the Dockerfiles or any of the startup scripts in [root](https://github.com/linuxserver/docker-baseimage-alpine/tree/3.22/root), add an entry to the changelog
119119

120120
```yml
121121
changelogs:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
------------------------------
2323

24-
- [ ] I have read the [contributing](https://github.com/linuxserver/docker-baseimage-alpine/blob/master/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications
24+
- [ ] I have read the [contributing](https://github.com/linuxserver/docker-baseimage-alpine/blob/3.22/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications
2525

2626
------------------------------
2727

.github/workflows/external_trigger.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ on:
44
workflow_dispatch:
55

66
jobs:
7-
external-trigger-master:
7+
external-trigger-3-22:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v4.1.1
1111

1212
- name: External Trigger
13-
if: github.ref == 'refs/heads/master'
13+
if: github.ref == 'refs/heads/3.22'
1414
env:
1515
SKIP_EXTERNAL_TRIGGER: ${{ vars.SKIP_EXTERNAL_TRIGGER }}
1616
run: |
1717
printf "# External trigger for docker-baseimage-alpine\n\n" >> $GITHUB_STEP_SUMMARY
1818
echo "Type is \`os\`" >> $GITHUB_STEP_SUMMARY
1919
echo "No external release, exiting" >> $GITHUB_STEP_SUMMARY
2020
exit 0
21-
if grep -q "^baseimage-alpine_master_${EXT_RELEASE}" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
21+
if grep -q "^baseimage-alpine_3.22_${EXT_RELEASE}" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
2222
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
2323
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` matches current external release; skipping trigger." >> $GITHUB_STEP_SUMMARY
2424
exit 0

.github/workflows/greetings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ jobs:
99
- uses: actions/first-interaction@v1
1010
with:
1111
issue-message: 'Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.'
12-
pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-baseimage-alpine/blob/master/.github/PULL_REQUEST_TEMPLATE.md)!'
12+
pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-baseimage-alpine/blob/3.22/.github/PULL_REQUEST_TEMPLATE.md)!'
1313
repo-token: ${{ secrets.GITHUB_TOKEN }}

Jenkinsfile

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ pipeline {
181181
}
182182
}
183183
}
184-
// If this is a master build use live docker endpoints
184+
// If this is a 3.22 build use live docker endpoints
185185
stage("Set ENV live build"){
186186
when {
187-
branch "master"
187+
branch "3.22"
188188
environment name: 'CHANGE_ID', value: ''
189189
}
190190
steps {
@@ -208,7 +208,7 @@ pipeline {
208208
// If this is a dev build use dev docker endpoints
209209
stage("Set ENV dev build"){
210210
when {
211-
not {branch "master"}
211+
not {branch "3.22"}
212212
environment name: 'CHANGE_ID', value: ''
213213
}
214214
steps {
@@ -286,7 +286,7 @@ pipeline {
286286
// Use helper containers to render templated files
287287
stage('Update-Templates') {
288288
when {
289-
branch "master"
289+
branch "3.22"
290290
environment name: 'CHANGE_ID', value: ''
291291
expression {
292292
env.CONTAINER_NAME != null
@@ -298,24 +298,24 @@ pipeline {
298298
TEMPDIR=$(mktemp -d)
299299
docker pull ghcr.io/linuxserver/jenkins-builder:latest
300300
# Cloned repo paths for templating:
301-
# ${TEMPDIR}/docker-${CONTAINER_NAME}: Cloned branch master of ${LS_USER}/${LS_REPO} for running the jenkins builder on
302-
# ${TEMPDIR}/repo/${LS_REPO}: Cloned branch master of ${LS_USER}/${LS_REPO} for commiting various templated file changes and pushing back to Github
301+
# ${TEMPDIR}/docker-${CONTAINER_NAME}: Cloned branch 3.22 of ${LS_USER}/${LS_REPO} for running the jenkins builder on
302+
# ${TEMPDIR}/repo/${LS_REPO}: Cloned branch 3.22 of ${LS_USER}/${LS_REPO} for commiting various templated file changes and pushing back to Github
303303
# ${TEMPDIR}/docs/docker-documentation: Cloned docs repo for pushing docs updates to Github
304304
# ${TEMPDIR}/unraid/docker-templates: Cloned docker-templates repo to check for logos
305305
# ${TEMPDIR}/unraid/templates: Cloned templates repo for commiting unraid template changes and pushing back to Github
306-
git clone --branch master --depth 1 https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/docker-${CONTAINER_NAME}
306+
git clone --branch 3.22 --depth 1 https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/docker-${CONTAINER_NAME}
307307
docker run --rm -v ${TEMPDIR}/docker-${CONTAINER_NAME}:/tmp -e LOCAL=true -e PUID=$(id -u) -e PGID=$(id -g) ghcr.io/linuxserver/jenkins-builder:latest
308308
echo "Starting Stage 1 - Jenkinsfile update"
309309
if [[ "$(md5sum Jenkinsfile | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile | awk '{ print $1 }')" ]]; then
310310
mkdir -p ${TEMPDIR}/repo
311311
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
312312
cd ${TEMPDIR}/repo/${LS_REPO}
313-
git checkout -f master
313+
git checkout -f 3.22
314314
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile ${TEMPDIR}/repo/${LS_REPO}/
315315
git add Jenkinsfile
316316
git commit -m 'Bot Updating Templated Files'
317-
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
318-
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
317+
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git 3.22
318+
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git 3.22
319319
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
320320
echo "Updating Jenkinsfile and exiting build, new one will trigger based on commit"
321321
rm -Rf ${TEMPDIR}
@@ -334,13 +334,13 @@ pipeline {
334334
mkdir -p ${TEMPDIR}/repo
335335
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
336336
cd ${TEMPDIR}/repo/${LS_REPO}
337-
git checkout -f master
337+
git checkout -f 3.22
338338
for i in ${TEMPLATES_TO_DELETE}; do
339339
git rm "${i}"
340340
done
341341
git commit -m 'Bot Updating Templated Files'
342-
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
343-
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
342+
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git 3.22
343+
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git 3.22
344344
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
345345
echo "Deleting old/deprecated templates and exiting build, new one will trigger based on commit"
346346
rm -Rf ${TEMPDIR}
@@ -356,7 +356,7 @@ pipeline {
356356
mkdir -p ${TEMPDIR}/repo
357357
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
358358
cd ${TEMPDIR}/repo/${LS_REPO}
359-
git checkout -f master
359+
git checkout -f 3.22
360360
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
361361
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/workflows
362362
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/ISSUE_TEMPLATE
@@ -369,8 +369,8 @@ pipeline {
369369
fi
370370
git add readme-vars.yml ${TEMPLATED_FILES}
371371
git commit -m 'Bot Updating Templated Files'
372-
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
373-
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
372+
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git 3.22
373+
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git 3.22
374374
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
375375
echo "Updating templates and exiting build, new one will trigger based on commit"
376376
rm -Rf ${TEMPDIR}
@@ -437,7 +437,7 @@ pipeline {
437437
// Exit the build if the Templated files were just updated
438438
stage('Template-exit') {
439439
when {
440-
branch "master"
440+
branch "3.22"
441441
environment name: 'CHANGE_ID', value: ''
442442
environment name: 'FILES_UPDATED', value: 'true'
443443
expression {
@@ -450,10 +450,10 @@ pipeline {
450450
}
451451
}
452452
}
453-
// If this is a master build check the S6 service file perms
453+
// If this is a 3.22 build check the S6 service file perms
454454
stage("Check S6 Service file Permissions"){
455455
when {
456-
branch "master"
456+
branch "3.22"
457457
environment name: 'CHANGE_ID', value: ''
458458
environment name: 'EXIT_STATUS', value: ''
459459
}
@@ -761,7 +761,7 @@ pipeline {
761761
// Take the image we just built and dump package versions for comparison
762762
stage('Update-packages') {
763763
when {
764-
branch "master"
764+
branch "3.22"
765765
environment name: 'CHANGE_ID', value: ''
766766
environment name: 'EXIT_STATUS', value: ''
767767
}
@@ -784,14 +784,14 @@ pipeline {
784784
echo "Package tag sha from current packages in buit container is ${NEW_PACKAGE_TAG} comparing to old ${PACKAGE_TAG} from github"
785785
if [ "${NEW_PACKAGE_TAG}" != "${PACKAGE_TAG}" ]; then
786786
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/${LS_REPO}
787-
git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f master
787+
git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f 3.22
788788
cp ${TEMPDIR}/package_versions.txt ${TEMPDIR}/${LS_REPO}/
789789
cd ${TEMPDIR}/${LS_REPO}/
790790
wait
791791
git add package_versions.txt
792792
git commit -m 'Bot Updating Package Versions'
793-
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
794-
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
793+
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git 3.22
794+
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git 3.22
795795
echo "true" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}
796796
echo "Package tag updated, stopping build process"
797797
else
@@ -809,7 +809,7 @@ pipeline {
809809
// Exit the build if the package file was just updated
810810
stage('PACKAGE-exit') {
811811
when {
812-
branch "master"
812+
branch "3.22"
813813
environment name: 'CHANGE_ID', value: ''
814814
environment name: 'PACKAGE_UPDATED', value: 'true'
815815
environment name: 'EXIT_STATUS', value: ''
@@ -823,7 +823,7 @@ pipeline {
823823
// Exit the build if this is just a package check and there are no changes to push
824824
stage('PACKAGECHECK-exit') {
825825
when {
826-
branch "master"
826+
branch "3.22"
827827
environment name: 'CHANGE_ID', value: ''
828828
environment name: 'PACKAGE_UPDATED', value: 'false'
829829
environment name: 'EXIT_STATUS', value: ''
@@ -968,7 +968,7 @@ pipeline {
968968
// If this is a public release tag it in the LS Github
969969
stage('Github-Tag-Push-Release') {
970970
when {
971-
branch "master"
971+
branch "3.22"
972972
expression {
973973
env.LS_RELEASE != env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
974974
}
@@ -980,14 +980,14 @@ pipeline {
980980
sh '''curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/git/tags \
981981
-d '{"tag":"'${META_TAG}'",\
982982
"object": "'${COMMIT_SHA}'",\
983-
"message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to master",\
983+
"message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to 3.22",\
984984
"type": "commit",\
985985
"tagger": {"name": "LinuxServer-CI","email": "ci@linuxserver.io","date": "'${GITHUB_DATE}'"}}' '''
986986
echo "Pushing New release for Tag"
987987
sh '''#! /bin/bash
988988
echo "Updating base packages to ${PACKAGE_TAG}" > releasebody.json
989989
echo '{"tag_name":"'${META_TAG}'",\
990-
"target_commitish": "master",\
990+
"target_commitish": "3.22",\
991991
"name": "'${META_TAG}'",\
992992
"body": "**CI Report:**\\n\\n'${CI_URL:-N/A}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**Remote Changes:**\\n\\n' > start
993993
printf '","draft": false,"prerelease": false}' >> releasebody.json
@@ -998,14 +998,14 @@ pipeline {
998998
// Add protection to the release branch
999999
stage('Github-Release-Branch-Protection') {
10001000
when {
1001-
branch "master"
1001+
branch "3.22"
10021002
environment name: 'CHANGE_ID', value: ''
10031003
environment name: 'EXIT_STATUS', value: ''
10041004
}
10051005
steps {
1006-
echo "Setting up protection for release branch master"
1006+
echo "Setting up protection for release branch 3.22"
10071007
sh '''#! /bin/bash
1008-
curl -H "Authorization: token ${GITHUB_TOKEN}" -X PUT https://api.github.com/repos/${LS_USER}/${LS_REPO}/branches/master/protection \
1008+
curl -H "Authorization: token ${GITHUB_TOKEN}" -X PUT https://api.github.com/repos/${LS_USER}/${LS_REPO}/branches/3.22/protection \
10091009
-d $(jq -c . << EOF
10101010
{
10111011
"required_status_checks": null,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- DO NOT EDIT THIS FILE MANUALLY -->
2-
<!-- Please read https://github.com/linuxserver/docker-baseimage-alpine/blob/master/.github/CONTRIBUTING.md -->
2+
<!-- Please read https://github.com/linuxserver/docker-baseimage-alpine/blob/3.22/.github/CONTRIBUTING.md -->
33
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)](https://linuxserver.io)
44

55
## Contact information:-

jenkins-vars.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ project_name: docker-baseimage-alpine
55
external_type: os
66
release_type: stable
77
release_tag: "3.22"
8-
ls_branch: master
8+
ls_branch: "3.22"
99
build_riscv64: true
1010
repo_vars:
1111
- BUILD_VERSION_ARG = 'OS'

0 commit comments

Comments
 (0)