Skip to content

Commit e83e48e

Browse files
committed
rebase latest tag to build commits from upstream python3-dev branch
1 parent 766b0fb commit e83e48e

7 files changed

Lines changed: 26 additions & 24 deletions

File tree

.github/workflows/external_trigger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
3030
echo "> External trigger running off of master branch. To disable this trigger, add \`mylar3_master\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
3131
printf "\n## Retrieving external version\n\n" >> $GITHUB_STEP_SUMMARY
32-
EXT_RELEASE=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/mylar3/mylar3/releases/latest" | jq -r '. | .tag_name')
33-
echo "Type is \`github_stable\`" >> $GITHUB_STEP_SUMMARY
32+
EXT_RELEASE=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/mylar3/mylar3/commits/python3-dev" | jq -r '. | .sha' | cut -c1-8)
33+
echo "Type is \`github_commit\`" >> $GITHUB_STEP_SUMMARY
3434
if grep -q "^mylar3_master_${EXT_RELEASE}" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
3535
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
3636
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` matches current external release; skipping trigger." >> $GITHUB_STEP_SUMMARY

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/unrar:latest as unrar
3+
FROM ghcr.io/linuxserver/unrar:latest AS unrar
44

55
FROM ghcr.io/linuxserver/baseimage-ubuntu:jammy
66

@@ -32,8 +32,8 @@ RUN \
3232
zlib1g-dev && \
3333
echo "**** install mylar3 ****" && \
3434
if [ -z ${MYLAR3_RELEASE+x} ]; then \
35-
MYLAR3_RELEASE=$(curl -sX GET https://api.github.com/repos/mylar3/mylar3/releases/latest \
36-
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
35+
MYLAR3_RELEASE=$(curl -sX GET https://api.github.com/repos/mylar3/mylar3/commits/python3-dev \
36+
| jq -r '.sha' | cut -c1-8); \
3737
fi && \
3838
mkdir /app/mylar3 && \
3939
curl -o \

Dockerfile.aarch64

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/unrar:arm64v8-latest as unrar
3+
FROM ghcr.io/linuxserver/unrar:arm64v8-latest AS unrar
44

55
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-jammy
66

@@ -32,8 +32,8 @@ RUN \
3232
zlib1g-dev && \
3333
echo "**** install mylar3 ****" && \
3434
if [ -z ${MYLAR3_RELEASE+x} ]; then \
35-
MYLAR3_RELEASE=$(curl -sX GET https://api.github.com/repos/mylar3/mylar3/releases/latest \
36-
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
35+
MYLAR3_RELEASE=$(curl -sX GET https://api.github.com/repos/mylar3/mylar3/commits/python3-dev \
36+
| jq -r '.sha' | cut -c1-8); \
3737
fi && \
3838
mkdir /app/mylar3 && \
3939
curl -o \

Jenkinsfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pipeline {
1919
DOCKERHUB_TOKEN=credentials('docker-hub-ci-pat')
2020
QUAYIO_API_TOKEN=credentials('quayio-repo-api-token')
2121
GIT_SIGNING_KEY=credentials('484fbca6-9a4f-455e-b9e3-97ac98785f5f')
22-
EXT_GIT_BRANCH = 'master'
22+
EXT_GIT_BRANCH = 'python3-dev'
2323
EXT_USER = 'mylar3'
2424
EXT_REPO = 'mylar3'
2525
BUILD_VERSION_ARG = 'MYLAR3_RELEASE'
@@ -145,21 +145,21 @@ pipeline {
145145
/* ########################
146146
External Release Tagging
147147
######################## */
148-
// If this is a stable github release use the latest endpoint from github to determine the ext tag
149-
stage("Set ENV github_stable"){
148+
// If this is a github commit trigger determine the current commit at head
149+
stage("Set ENV github_commit"){
150150
steps{
151151
script{
152152
env.EXT_RELEASE = sh(
153-
script: '''curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq -r '. | .tag_name' ''',
153+
script: '''curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/commits/${EXT_GIT_BRANCH} | jq -r '. | .sha' | cut -c1-8 ''',
154154
returnStdout: true).trim()
155155
}
156156
}
157157
}
158-
// If this is a stable or devel github release generate the link for the build message
159-
stage("Set ENV github_link"){
158+
// If this is a github commit trigger Set the external release link
159+
stage("Set ENV commit_link"){
160160
steps{
161161
script{
162-
env.RELEASE_LINK = 'https://github.com/' + env.EXT_USER + '/' + env.EXT_REPO + '/releases/tag/' + env.EXT_RELEASE
162+
env.RELEASE_LINK = 'https://github.com/' + env.EXT_USER + '/' + env.EXT_REPO + '/commit/' + env.EXT_RELEASE
163163
}
164164
}
165165
}
@@ -1030,7 +1030,7 @@ pipeline {
10301030
"type": "commit",\
10311031
"tagger": {"name": "LinuxServer-CI","email": "[email protected]","date": "'${GITHUB_DATE}'"}}'
10321032
echo "Pushing New release for Tag"
1033-
curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq -r '. |.body' > releasebody.json
1033+
curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/commits/${EXT_RELEASE_CLEAN} | jq -r '.commit.message' > releasebody.json
10341034
jq -n \
10351035
--arg tag_name "$META_TAG" \
10361036
--arg target_commitish "master" \

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ This image provides various versions that are available via tags. Please read th
6060

6161
| Tag | Available | Description |
6262
| :----: | :----: |--- |
63-
| latest || Stable Mylar3 releases |
64-
| nightly || Commits to Mylar3 `python3-dev` branch |
65-
| unstable || Commits to Mylar3 `1000papercuts` branch |
63+
| latest || Commits to Mylar3 `python3-dev` branch |
64+
| nightly || Commits to Mylar3 `1000papercuts` branch (ubuntu) |
65+
| unstable || Commits to Mylar3 `1000papercuts` branch (alpine) |
6666

6767
## Application Setup
6868

@@ -289,6 +289,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
289289

290290
## Versions
291291

292+
* **19.02.26:** - Rebase `latest` tag based on commits to upstream `python3-dev` branch. `nightly` will build commits to upstream `1000papercuts` branch. `unstable` tag will also build commits to upstream `1000papercuts` branch, but on alpine 3.23 with python 3.12.
292293
* **05.02.26:** - Release `unstable` tag based on commits to upstream `1000papercuts` branch.
293294
* **21.11.25:** - Rebase to Ubuntu Jammy.
294295
* **23.12.23:** - Rebase to Alpine 3.19.

jenkins-vars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
# jenkins variables
44
project_name: docker-mylar3
5-
external_type: github_stable
5+
external_type: github_commit
66
release_type: stable
77
release_tag: latest
88
ls_branch: master
99
repo_vars:
10-
- EXT_GIT_BRANCH = 'master'
10+
- EXT_GIT_BRANCH = 'python3-dev'
1111
- EXT_USER = 'mylar3'
1212
- EXT_REPO = 'mylar3'
1313
- BUILD_VERSION_ARG = 'MYLAR3_RELEASE'

readme-vars.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ available_architectures:
1414
# development version
1515
development_versions: true
1616
development_versions_items:
17-
- {tag: "latest", desc: "Stable Mylar3 releases"}
18-
- {tag: "nightly", desc: "Commits to Mylar3 `python3-dev` branch"}
19-
- {tag: "unstable", desc: "Commits to Mylar3 `1000papercuts` branch"}
17+
- {tag: "latest", desc: "Commits to Mylar3 `python3-dev` branch"}
18+
- {tag: "nightly", desc: "Commits to Mylar3 `1000papercuts` branch (ubuntu)"}
19+
- {tag: "unstable", desc: "Commits to Mylar3 `1000papercuts` branch (alpine)"}
2020
# container parameters
2121
param_container_name: "{{ project_name }}"
2222
param_usage_include_vols: true
@@ -80,6 +80,7 @@ init_diagram: |
8080
"mylar3:latest" <- Base Images
8181
# changelog
8282
changelogs:
83+
- {date: "19.02.26:", desc: "Rebase `latest` tag based on commits to upstream `python3-dev` branch. `nightly` will build commits to upstream `1000papercuts` branch. `unstable` tag will also build commits to upstream `1000papercuts` branch, but on alpine 3.23 with python 3.12."}
8384
- {date: "05.02.26:", desc: "Release `unstable` tag based on commits to upstream `1000papercuts` branch."}
8485
- {date: "21.11.25:", desc: "Rebase to Ubuntu Jammy."}
8586
- {date: "23.12.23:", desc: "Rebase to Alpine 3.19."}

0 commit comments

Comments
 (0)