Skip to content
This repository was archived by the owner on Apr 23, 2024. It is now read-only.

Commit 5f2595e

Browse files
authored
Merge pull request #7 from linuxserver/develop-initial
2 parents ddecdcd + 87003a1 commit 5f2595e

12 files changed

+121
-107
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-plex-meta-manager/edit/main/readme-vars.yml).
27+
Instead edit the [readme-vars.yml](https://github.com/linuxserver/docker-plex-meta-manager/edit/develop/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/images/docker-plex-meta-manager)
@@ -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-plex-meta-manager/tree/main/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-plex-meta-manager/tree/develop/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-plex-meta-manager/blob/main/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications
24+
- [ ] I have read the [contributing](https://github.com/linuxserver/docker-plex-meta-manager/blob/develop/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications
2525

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

.github/workflows/external_trigger.yml

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

66
jobs:
7-
external-trigger-main:
7+
external-trigger-develop:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/[email protected]
1111

1212
- name: External Trigger
13-
if: github.ref == 'refs/heads/main'
13+
if: github.ref == 'refs/heads/develop'
1414
run: |
15-
if [ -n "${{ secrets.PAUSE_EXTERNAL_TRIGGER_PLEX_META_MANAGER_MAIN }}" ]; then
16-
echo "**** Github secret PAUSE_EXTERNAL_TRIGGER_PLEX_META_MANAGER_MAIN is set; skipping trigger. ****"
15+
if [ -n "${{ secrets.PAUSE_EXTERNAL_TRIGGER_PLEX_META_MANAGER_DEVELOP }}" ]; then
16+
echo "**** Github secret PAUSE_EXTERNAL_TRIGGER_PLEX_META_MANAGER_DEVELOP is set; skipping trigger. ****"
1717
exit 0
1818
fi
19-
echo "**** External trigger running off of main branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_PLEX_META_MANAGER_MAIN\". ****"
19+
echo "**** External trigger running off of develop branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_PLEX_META_MANAGER_DEVELOP\". ****"
2020
echo "**** Retrieving external version ****"
21-
EXT_RELEASE=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/meisnate12/Plex-Meta-Manager/releases/latest" | jq -r '. | .tag_name')
21+
EXT_RELEASE=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/meisnate12/Plex-Meta-Manager/commits/develop" | jq -r '. | .sha' | cut -c1-8)
2222
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
2323
echo "**** Can't retrieve external version, exiting ****"
24-
FAILURE_REASON="Can't retrieve external version for plex-meta-manager branch main"
24+
FAILURE_REASON="Can't retrieve external version for plex-meta-manager branch develop"
2525
GHA_TRIGGER_URL="https://github.com/linuxserver/docker-plex-meta-manager/actions/runs/${{ github.run_id }}"
2626
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 16711680,
2727
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n**Trigger URL:** '"${GHA_TRIGGER_URL}"' \n"}],
@@ -32,7 +32,7 @@ jobs:
3232
echo "**** External version: ${EXT_RELEASE} ****"
3333
echo "**** Retrieving last pushed version ****"
3434
image="linuxserver/plex-meta-manager"
35-
tag="latest"
35+
tag="develop"
3636
token=$(curl -sX GET \
3737
"https://ghcr.io/token?scope=repository%3Alinuxserver%2Fplex-meta-manager%3Apull" \
3838
| jq -r '.token')
@@ -54,7 +54,7 @@ jobs:
5454
IMAGE_VERSION=$(echo ${IMAGE_RELEASE} | awk -F'-ls' '{print $1}')
5555
if [ -z "${IMAGE_VERSION}" ]; then
5656
echo "**** Can't retrieve last pushed version, exiting ****"
57-
FAILURE_REASON="Can't retrieve last pushed version for plex-meta-manager tag latest"
57+
FAILURE_REASON="Can't retrieve last pushed version for plex-meta-manager tag develop"
5858
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 16711680,
5959
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n"}],
6060
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
@@ -64,13 +64,13 @@ jobs:
6464
if [ "${EXT_RELEASE}" == "${IMAGE_VERSION}" ]; then
6565
echo "**** Version ${EXT_RELEASE} already pushed, exiting ****"
6666
exit 0
67-
elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-plex-meta-manager/job/main/lastBuild/api/json | jq -r '.building') == "true" ]; then
67+
elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-plex-meta-manager/job/develop/lastBuild/api/json | jq -r '.building') == "true" ]; then
6868
echo "**** New version ${EXT_RELEASE} found; but there already seems to be an active build on Jenkins; exiting ****"
6969
exit 0
7070
else
7171
echo "**** New version ${EXT_RELEASE} found; old version was ${IMAGE_VERSION}. Triggering new build ****"
7272
response=$(curl -iX POST \
73-
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-plex-meta-manager/job/main/buildWithParameters?PACKAGE_CHECK=false \
73+
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-plex-meta-manager/job/develop/buildWithParameters?PACKAGE_CHECK=false \
7474
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|")
7575
echo "**** Jenkins job queue url: ${response%$'\r'} ****"
7676
echo "**** Sleeping 10 seconds until job starts ****"
@@ -85,7 +85,7 @@ jobs:
8585
--data-urlencode "description=GHA external trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
8686
--data-urlencode "Submit=Submit"
8787
echo "**** Notifying Discord ****"
88-
TRIGGER_REASON="A version change was detected for plex-meta-manager tag latest. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE}"
88+
TRIGGER_REASON="A version change was detected for plex-meta-manager tag develop. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE}"
8989
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
9090
"description": "**Build Triggered** \n**Reason:** '"${TRIGGER_REASON}"' \n**Build URL:** '"${buildurl}display/redirect"' \n"}],
9191
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}

.github/workflows/greetings.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ jobs:
88
steps:
99
- uses: actions/first-interaction@v1
1010
with:
11-
issue-message: 'Thanks for opening your first issue here! Be sure to follow the [bug](https://github.com/linuxserver/docker-plex-meta-manager/blob/main/.github/ISSUE_TEMPLATE/issue.bug.md) or [feature](https://github.com/linuxserver/docker-plex-meta-manager/blob/main/.github/ISSUE_TEMPLATE/issue.feature.md) issue templates!'
12-
pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-plex-meta-manager/blob/main/.github/PULL_REQUEST_TEMPLATE.md)!'
11+
issue-message: 'Thanks for opening your first issue here! Be sure to follow the [bug](https://github.com/linuxserver/docker-plex-meta-manager/blob/develop/.github/ISSUE_TEMPLATE/issue.bug.md) or [feature](https://github.com/linuxserver/docker-plex-meta-manager/blob/develop/.github/ISSUE_TEMPLATE/issue.feature.md) issue templates!'
12+
pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-plex-meta-manager/blob/develop/.github/PULL_REQUEST_TEMPLATE.md)!'
1313
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/package_trigger.yml

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

66
jobs:
7-
package-trigger-main:
7+
package-trigger-develop:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/[email protected]
1111

1212
- name: Package Trigger
13-
if: github.ref == 'refs/heads/main'
13+
if: github.ref == 'refs/heads/develop'
1414
run: |
15-
if [ -n "${{ secrets.PAUSE_PACKAGE_TRIGGER_PLEX_META_MANAGER_MAIN }}" ]; then
16-
echo "**** Github secret PAUSE_PACKAGE_TRIGGER_PLEX_META_MANAGER_MAIN is set; skipping trigger. ****"
15+
if [ -n "${{ secrets.PAUSE_PACKAGE_TRIGGER_PLEX_META_MANAGER_DEVELOP }}" ]; then
16+
echo "**** Github secret PAUSE_PACKAGE_TRIGGER_PLEX_META_MANAGER_DEVELOP is set; skipping trigger. ****"
1717
exit 0
1818
fi
19-
if [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-plex-meta-manager/job/main/lastBuild/api/json | jq -r '.building') == "true" ]; then
19+
if [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-plex-meta-manager/job/develop/lastBuild/api/json | jq -r '.building') == "true" ]; then
2020
echo "**** There already seems to be an active build on Jenkins; skipping package trigger ****"
2121
exit 0
2222
fi
23-
echo "**** Package trigger running off of main branch. To disable, set a Github secret named \"PAUSE_PACKAGE_TRIGGER_PLEX_META_MANAGER_MAIN\". ****"
23+
echo "**** Package trigger running off of develop branch. To disable, set a Github secret named \"PAUSE_PACKAGE_TRIGGER_PLEX_META_MANAGER_DEVELOP\". ****"
2424
response=$(curl -iX POST \
25-
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-plex-meta-manager/job/main/buildWithParameters?PACKAGE_CHECK=true \
25+
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-plex-meta-manager/job/develop/buildWithParameters?PACKAGE_CHECK=true \
2626
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|")
2727
echo "**** Jenkins job queue url: ${response%$'\r'} ****"
2828
echo "**** Sleeping 10 seconds until job starts ****"

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ RUN \
3030
python3 \
3131
py3-pip && \
3232
if [ -z ${PMM_VERSION+x} ]; then \
33-
PMM_VERSION=$(curl -s https://api.github.com/repos/meisnate12/Plex-Meta-Manager/releases \
34-
| jq -r 'first(.[]) | .tag_name'); \
33+
PMM_VERSION=$(curl -s "https://api.github.com/repos/meisnate12/Plex-Meta-Manager/commits/develop" \
34+
| jq -r '. | .sha' | cut -c1-8); \
3535
fi && \
3636
mkdir -p /app/pmm && \
3737
curl -o \
3838
/tmp/pmm.tar.gz -L \
39-
"https://github.com/meisnate12/Plex-Meta-Manager/archive/refs/tags/${PMM_VERSION}.tar.gz" && \
39+
"https://github.com/meisnate12/Plex-Meta-Manager/archive/${PMM_VERSION}.tar.gz" && \
4040
tar xf \
4141
/tmp/pmm.tar.gz -C \
4242
/app/pmm --strip-components=1 && \

Dockerfile.aarch64

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ RUN \
2626
apk add -U --update --no-cache \
2727
grep \
2828
libjpeg \
29-
libxslt \
29+
libxslt \
3030
python3 \
3131
py3-pip && \
3232
if [ -z ${PMM_VERSION+x} ]; then \
33-
PMM_VERSION=$(curl -s https://api.github.com/repos/meisnate12/Plex-Meta-Manager/releases \
34-
| jq -r 'first(.[]) | .tag_name'); \
33+
PMM_VERSION=$(curl -s "https://api.github.com/repos/meisnate12/Plex-Meta-Manager/commits/develop" \
34+
| jq -r '. | .sha' | cut -c1-8); \
3535
fi && \
3636
mkdir -p /app/pmm && \
3737
curl -o \
3838
/tmp/pmm.tar.gz -L \
39-
"https://github.com/meisnate12/Plex-Meta-Manager/archive/refs/tags/${PMM_VERSION}.tar.gz" && \
39+
"https://github.com/meisnate12/Plex-Meta-Manager/archive/${PMM_VERSION}.tar.gz" && \
4040
tar xf \
4141
/tmp/pmm.tar.gz -C \
4242
/app/pmm --strip-components=1 && \

Dockerfile.armhf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ RUN \
2626
apk add -U --update --no-cache \
2727
grep \
2828
libjpeg \
29-
libxslt \
29+
libxslt \
3030
python3 \
3131
py3-pip && \
3232
if [ -z ${PMM_VERSION+x} ]; then \
33-
PMM_VERSION=$(curl -s https://api.github.com/repos/meisnate12/Plex-Meta-Manager/releases \
34-
| jq -r 'first(.[]) | .tag_name'); \
33+
PMM_VERSION=$(curl -s "https://api.github.com/repos/meisnate12/Plex-Meta-Manager/commits/develop" \
34+
| jq -r '. | .sha' | cut -c1-8); \
3535
fi && \
3636
mkdir -p /app/pmm && \
3737
curl -o \
3838
/tmp/pmm.tar.gz -L \
39-
"https://github.com/meisnate12/Plex-Meta-Manager/archive/refs/tags/${PMM_VERSION}.tar.gz" && \
39+
"https://github.com/meisnate12/Plex-Meta-Manager/archive/${PMM_VERSION}.tar.gz" && \
4040
tar xf \
4141
/tmp/pmm.tar.gz -C \
4242
/app/pmm --strip-components=1 && \

0 commit comments

Comments
 (0)