Skip to content

Commit f19a5d1

Browse files
authored
Merge pull request #46 from linuxserver/branch-40
2 parents 2d49c65 + 9608a06 commit f19a5d1

File tree

7 files changed

+47
-49
lines changed

7 files changed

+47
-49
lines changed

.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-fedora/edit/master/readme-vars.yml).
27+
Instead edit the [readme-vars.yml](https://github.com/linuxserver/docker-baseimage-fedora/edit/40/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-fedora/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-fedora/tree/40/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-fedora/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-fedora/blob/40/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications
2525

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

.github/workflows/external_trigger.yml

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

66
jobs:
7-
external-trigger-master:
7+
external-trigger-40:
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/40'
1414
env:
1515
SKIP_EXTERNAL_TRIGGER: ${{ vars.SKIP_EXTERNAL_TRIGGER }}
1616
run: |
1717
printf "# External trigger for docker-baseimage-fedora\n\n" >> $GITHUB_STEP_SUMMARY
18-
if grep -q "^baseimage-fedora_master" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
18+
if grep -q "^baseimage-fedora_40" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
1919
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
20-
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` contains \`baseimage-fedora_master\`; skipping trigger." >> $GITHUB_STEP_SUMMARY
20+
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` contains \`baseimage-fedora_40\`; skipping trigger." >> $GITHUB_STEP_SUMMARY
2121
exit 0
2222
fi
2323
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
24-
echo "> External trigger running off of master branch. To disable this trigger, add \`baseimage-fedora_master\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
24+
echo "> External trigger running off of 40 branch. To disable this trigger, add \`baseimage-fedora_40\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
2525
printf "\n## Retrieving external version\n\n" >> $GITHUB_STEP_SUMMARY
2626
EXT_RELEASE=$(echo 40)
2727
echo "Type is \`custom_version_command\`" >> $GITHUB_STEP_SUMMARY
2828
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
2929
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
3030
echo "> Can't retrieve external version, exiting" >> $GITHUB_STEP_SUMMARY
31-
FAILURE_REASON="Can't retrieve external version for baseimage-fedora branch master"
31+
FAILURE_REASON="Can't retrieve external version for baseimage-fedora branch 40"
3232
GHA_TRIGGER_URL="https://github.com/linuxserver/docker-baseimage-fedora/actions/runs/${{ github.run_id }}"
3333
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 16711680,
3434
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n**Trigger URL:** '"${GHA_TRIGGER_URL}"' \n"}],
@@ -95,7 +95,7 @@ jobs:
9595
if [ "${EXT_RELEASE}" == "${IMAGE_VERSION}" ]; then
9696
echo "Version \`${EXT_RELEASE}\` already pushed, exiting" >> $GITHUB_STEP_SUMMARY
9797
exit 0
98-
elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-baseimage-fedora/job/master/lastBuild/api/json | jq -r '.building') == "true" ]; then
98+
elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-baseimage-fedora/job/40/lastBuild/api/json | jq -r '.building') == "true" ]; then
9999
echo "New version \`${EXT_RELEASE}\` found; but there already seems to be an active build on Jenkins; exiting" >> $GITHUB_STEP_SUMMARY
100100
exit 0
101101
else
@@ -113,7 +113,7 @@ jobs:
113113
echo "All artifacts seem to be uploaded." >> $GITHUB_STEP_SUMMARY
114114
fi
115115
response=$(curl -iX POST \
116-
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-baseimage-fedora/job/master/buildWithParameters?PACKAGE_CHECK=false \
116+
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-baseimage-fedora/job/40/buildWithParameters?PACKAGE_CHECK=false \
117117
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|")
118118
echo "Jenkins [job queue url](${response%$'\r'})" >> $GITHUB_STEP_SUMMARY
119119
echo "Sleeping 10 seconds until job starts" >> $GITHUB_STEP_SUMMARY

.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-fedora/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-fedora/blob/40/.github/PULL_REQUEST_TEMPLATE.md)!'
1313
repo-token: ${{ secrets.GITHUB_TOKEN }}

Jenkinsfile

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ pipeline {
171171
}
172172
}
173173
}
174-
// If this is a master build use live docker endpoints
174+
// If this is a 40 build use live docker endpoints
175175
stage("Set ENV live build"){
176176
when {
177-
branch "master"
177+
branch "40"
178178
environment name: 'CHANGE_ID', value: ''
179179
}
180180
steps {
@@ -198,7 +198,7 @@ pipeline {
198198
// If this is a dev build use dev docker endpoints
199199
stage("Set ENV dev build"){
200200
when {
201-
not {branch "master"}
201+
not {branch "40"}
202202
environment name: 'CHANGE_ID', value: ''
203203
}
204204
steps {
@@ -276,7 +276,7 @@ pipeline {
276276
// Use helper containers to render templated files
277277
stage('Update-Templates') {
278278
when {
279-
branch "master"
279+
branch "40"
280280
environment name: 'CHANGE_ID', value: ''
281281
expression {
282282
env.CONTAINER_NAME != null
@@ -288,24 +288,24 @@ pipeline {
288288
TEMPDIR=$(mktemp -d)
289289
docker pull ghcr.io/linuxserver/jenkins-builder:latest
290290
# Cloned repo paths for templating:
291-
# ${TEMPDIR}/docker-${CONTAINER_NAME}: Cloned branch master of ${LS_USER}/${LS_REPO} for running the jenkins builder on
292-
# ${TEMPDIR}/repo/${LS_REPO}: Cloned branch master of ${LS_USER}/${LS_REPO} for commiting various templated file changes and pushing back to Github
291+
# ${TEMPDIR}/docker-${CONTAINER_NAME}: Cloned branch 40 of ${LS_USER}/${LS_REPO} for running the jenkins builder on
292+
# ${TEMPDIR}/repo/${LS_REPO}: Cloned branch 40 of ${LS_USER}/${LS_REPO} for commiting various templated file changes and pushing back to Github
293293
# ${TEMPDIR}/docs/docker-documentation: Cloned docs repo for pushing docs updates to Github
294294
# ${TEMPDIR}/unraid/docker-templates: Cloned docker-templates repo to check for logos
295295
# ${TEMPDIR}/unraid/templates: Cloned templates repo for commiting unraid template changes and pushing back to Github
296-
git clone --branch master --depth 1 https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/docker-${CONTAINER_NAME}
296+
git clone --branch 40 --depth 1 https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/docker-${CONTAINER_NAME}
297297
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
298298
echo "Starting Stage 1 - Jenkinsfile update"
299299
if [[ "$(md5sum Jenkinsfile | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile | awk '{ print $1 }')" ]]; then
300300
mkdir -p ${TEMPDIR}/repo
301301
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
302302
cd ${TEMPDIR}/repo/${LS_REPO}
303-
git checkout -f master
303+
git checkout -f 40
304304
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile ${TEMPDIR}/repo/${LS_REPO}/
305305
git add Jenkinsfile
306306
git commit -m 'Bot Updating Templated Files'
307-
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
308-
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
307+
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git 40
308+
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git 40
309309
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
310310
echo "Updating Jenkinsfile and exiting build, new one will trigger based on commit"
311311
rm -Rf ${TEMPDIR}
@@ -324,13 +324,13 @@ pipeline {
324324
mkdir -p ${TEMPDIR}/repo
325325
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
326326
cd ${TEMPDIR}/repo/${LS_REPO}
327-
git checkout -f master
327+
git checkout -f 40
328328
for i in ${TEMPLATES_TO_DELETE}; do
329329
git rm "${i}"
330330
done
331331
git commit -m 'Bot Updating Templated Files'
332-
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
333-
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
332+
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git 40
333+
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git 40
334334
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
335335
echo "Deleting old/deprecated templates and exiting build, new one will trigger based on commit"
336336
rm -Rf ${TEMPDIR}
@@ -346,7 +346,7 @@ pipeline {
346346
mkdir -p ${TEMPDIR}/repo
347347
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
348348
cd ${TEMPDIR}/repo/${LS_REPO}
349-
git checkout -f master
349+
git checkout -f 40
350350
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
351351
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/workflows
352352
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/ISSUE_TEMPLATE
@@ -359,8 +359,8 @@ pipeline {
359359
fi
360360
git add readme-vars.yml ${TEMPLATED_FILES}
361361
git commit -m 'Bot Updating Templated Files'
362-
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
363-
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
362+
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git 40
363+
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git 40
364364
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
365365
echo "Updating templates and exiting build, new one will trigger based on commit"
366366
rm -Rf ${TEMPDIR}
@@ -427,7 +427,7 @@ pipeline {
427427
// Exit the build if the Templated files were just updated
428428
stage('Template-exit') {
429429
when {
430-
branch "master"
430+
branch "40"
431431
environment name: 'CHANGE_ID', value: ''
432432
environment name: 'FILES_UPDATED', value: 'true'
433433
expression {
@@ -440,10 +440,10 @@ pipeline {
440440
}
441441
}
442442
}
443-
// If this is a master build check the S6 service file perms
443+
// If this is a 40 build check the S6 service file perms
444444
stage("Check S6 Service file Permissions"){
445445
when {
446-
branch "master"
446+
branch "40"
447447
environment name: 'CHANGE_ID', value: ''
448448
environment name: 'EXIT_STATUS', value: ''
449449
}
@@ -684,7 +684,7 @@ pipeline {
684684
// Take the image we just built and dump package versions for comparison
685685
stage('Update-packages') {
686686
when {
687-
branch "master"
687+
branch "40"
688688
environment name: 'CHANGE_ID', value: ''
689689
environment name: 'EXIT_STATUS', value: ''
690690
}
@@ -707,14 +707,14 @@ pipeline {
707707
echo "Package tag sha from current packages in buit container is ${NEW_PACKAGE_TAG} comparing to old ${PACKAGE_TAG} from github"
708708
if [ "${NEW_PACKAGE_TAG}" != "${PACKAGE_TAG}" ]; then
709709
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/${LS_REPO}
710-
git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f master
710+
git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f 40
711711
cp ${TEMPDIR}/package_versions.txt ${TEMPDIR}/${LS_REPO}/
712712
cd ${TEMPDIR}/${LS_REPO}/
713713
wait
714714
git add package_versions.txt
715715
git commit -m 'Bot Updating Package Versions'
716-
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
717-
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
716+
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git 40
717+
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git 40
718718
echo "true" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}
719719
echo "Package tag updated, stopping build process"
720720
else
@@ -732,7 +732,7 @@ pipeline {
732732
// Exit the build if the package file was just updated
733733
stage('PACKAGE-exit') {
734734
when {
735-
branch "master"
735+
branch "40"
736736
environment name: 'CHANGE_ID', value: ''
737737
environment name: 'PACKAGE_UPDATED', value: 'true'
738738
environment name: 'EXIT_STATUS', value: ''
@@ -746,7 +746,7 @@ pipeline {
746746
// Exit the build if this is just a package check and there are no changes to push
747747
stage('PACKAGECHECK-exit') {
748748
when {
749-
branch "master"
749+
branch "40"
750750
environment name: 'CHANGE_ID', value: ''
751751
environment name: 'PACKAGE_UPDATED', value: 'false'
752752
environment name: 'EXIT_STATUS', value: ''
@@ -887,7 +887,7 @@ pipeline {
887887
// If this is a public release tag it in the LS Github
888888
stage('Github-Tag-Push-Release') {
889889
when {
890-
branch "master"
890+
branch "40"
891891
expression {
892892
env.LS_RELEASE != env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
893893
}
@@ -899,32 +899,32 @@ pipeline {
899899
sh '''curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/git/tags \
900900
-d '{"tag":"'${META_TAG}'",\
901901
"object": "'${COMMIT_SHA}'",\
902-
"message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to master",\
902+
"message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to 40",\
903903
"type": "commit",\
904904
"tagger": {"name": "LinuxServer-CI","email": "ci@linuxserver.io","date": "'${GITHUB_DATE}'"}}' '''
905905
echo "Pushing New release for Tag"
906906
sh '''#! /bin/bash
907907
echo "Updating to ${EXT_RELEASE_CLEAN}" > releasebody.json
908908
echo '{"tag_name":"'${META_TAG}'",\
909-
"target_commitish": "master",\
909+
"target_commitish": "40",\
910910
"name": "'${META_TAG}'",\
911911
"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
912-
printf '","draft": false,"prerelease": false}' >> releasebody.json
912+
printf '","draft": false,"prerelease": true}' >> releasebody.json
913913
paste -d'\\0' start releasebody.json > releasebody.json.done
914914
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done'''
915915
}
916916
}
917917
// Add protection to the release branch
918918
stage('Github-Release-Branch-Protection') {
919919
when {
920-
branch "master"
920+
branch "40"
921921
environment name: 'CHANGE_ID', value: ''
922922
environment name: 'EXIT_STATUS', value: ''
923923
}
924924
steps {
925-
echo "Setting up protection for release branch master"
925+
echo "Setting up protection for release branch 40"
926926
sh '''#! /bin/bash
927-
curl -H "Authorization: token ${GITHUB_TOKEN}" -X PUT https://api.github.com/repos/${LS_USER}/${LS_REPO}/branches/master/protection \
927+
curl -H "Authorization: token ${GITHUB_TOKEN}" -X PUT https://api.github.com/repos/${LS_USER}/${LS_REPO}/branches/40/protection \
928928
-d $(jq -c . << EOF
929929
{
930930
"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-fedora/blob/master/.github/CONTRIBUTING.md -->
2+
<!-- Please read https://github.com/linuxserver/docker-baseimage-fedora/blob/40/.github/CONTRIBUTING.md -->
33
[linuxserverurl]: https://linuxserver.io
44
[forumurl]: https://forum.linuxserver.io
55
[ircurl]: https://www.linuxserver.io/irc/

jenkins-vars.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
project_name: docker-baseimage-fedora
55
external_type: na
66
custom_version_command: "echo 40"
7-
release_type: stable
7+
release_type: prerelease
88
release_tag: "40"
9-
ls_branch: master
10-
image_sbom: true
11-
image_provenance: true
9+
ls_branch: "40"
1210
repo_vars:
1311
- BUILD_VERSION_ARG = 'FEDORA_VERSION'
1412
- LS_USER = 'linuxserver'

0 commit comments

Comments
 (0)