[14] change lxml tags

This commit is contained in:
meisnate12 2024-04-08 18:50:24 -04:00
parent 4b9b369457
commit 269fde29aa
8 changed files with 34 additions and 13 deletions

View file

@ -32,7 +32,7 @@ jobs:
id: buildx id: buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Build and push - name: Build and Push
id: docker_build id: docker_build
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
@ -46,7 +46,7 @@ jobs:
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
- name: Build and push Lxml Version - name: Build and Push lxml Version
id: docker_build_lxml id: docker_build_lxml
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
@ -56,7 +56,7 @@ jobs:
"BRANCH_NAME=develop" "BRANCH_NAME=develop"
platforms: linux/amd64,linux/arm64,linux/arm/v7 platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:lxml tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:lxml-develop
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max

View file

@ -28,7 +28,7 @@ jobs:
id: buildx id: buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Build and push - name: Build and Push
id: docker_build id: docker_build
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
@ -40,7 +40,7 @@ jobs:
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
- name: Build and push Lxml Version - name: Build and Push lxml Version
id: docker_build_lxml id: docker_build_lxml
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
@ -48,7 +48,7 @@ jobs:
file: ./Dockerfile.lxml file: ./Dockerfile.lxml
platforms: linux/amd64,linux/arm64,linux/arm/v7 platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:lxml tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:lxml-latest
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max

View file

@ -32,7 +32,7 @@ jobs:
id: buildx id: buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Build and push - name: Build and Push
id: docker_build id: docker_build
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
@ -46,7 +46,7 @@ jobs:
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
- name: Build and push Lxml Version - name: Build and Push lxml Version
id: docker_build_lxml id: docker_build_lxml
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
@ -56,7 +56,7 @@ jobs:
"BRANCH_NAME=nightly" "BRANCH_NAME=nightly"
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
push: true push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:lxml tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:lxml-nightly
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max

View file

@ -36,7 +36,7 @@ jobs:
id: get_version id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
- name: Build and push - name: Build and Push
id: docker_build id: docker_build
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
@ -48,6 +48,18 @@ jobs:
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
- name: Build and Push lxml Version
id: docker_build_lxml
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile.lxml
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:lxml-${{ steps.get_version.outputs.VERSION }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Discord Success Notification - name: Discord Success Notification
uses: meisnate12/discord-notifications@master uses: meisnate12/discord-notifications@master
if: success() if: success()

View file

@ -3,6 +3,7 @@ ARG BRANCH_NAME=master
ENV BRANCH_NAME ${BRANCH_NAME} ENV BRANCH_NAME ${BRANCH_NAME}
ENV TINI_VERSION v0.19.0 ENV TINI_VERSION v0.19.0
ENV PMM_DOCKER True ENV PMM_DOCKER True
ENV PMM_LXML True
COPY requirements.txt requirements.txt COPY requirements.txt requirements.txt
RUN sed -i -E "s/(lxml==).+/\15.1.1/" requirements.txt RUN sed -i -E "s/(lxml==).+/\15.1.1/" requirements.txt
RUN echo "**** install system packages ****" \ RUN echo "**** install system packages ****" \

View file

@ -1 +1 @@
1.21.0-develop13 1.21.0-develop14

View file

@ -407,7 +407,7 @@ class DataFile:
elif str(con_var_value) == str(var_value): elif str(con_var_value) == str(var_value):
error_text = f'is "{var_value}"' error_text = f'is "{var_value}"'
elif var_key.endswith(".notdefault"): elif var_key.endswith(".notdefault"):
var_name = var_key[:-4] var_name = var_key[:-11]
if var_name in variables or var_name in default: if var_name in variables or var_name in default:
con_var_value = variables[var_name] if var_name in variables else default[var_name] con_var_value = variables[var_name] if var_name in variables else default[var_name]
if isinstance(var_value, list): if isinstance(var_value, list):

View file

@ -109,6 +109,7 @@ for arg_key, arg_data in arguments.items():
env_version = get_env("BRANCH_NAME", "master") env_version = get_env("BRANCH_NAME", "master")
is_docker = get_env("PMM_DOCKER", False, arg_bool=True) is_docker = get_env("PMM_DOCKER", False, arg_bool=True)
is_linuxserver = get_env("PMM_LINUXSERVER", False, arg_bool=True) is_linuxserver = get_env("PMM_LINUXSERVER", False, arg_bool=True)
is_lxml = get_env("PMM_LXML", False, arg_bool=True)
secret_args = {} secret_args = {}
plex_url = None plex_url = None
@ -231,7 +232,14 @@ def start(attrs):
logger.info_center("| __/| | __/> < | | | | __/ || (_| | | | | | (_| | | | | (_| | (_| | __/ | ") logger.info_center("| __/| | __/> < | | | | __/ || (_| | | | | | (_| | | | | (_| | (_| | __/ | ")
logger.info_center("|_| |_|\\___/_/\\_\\ |_| |_|\\___|\\__\\__,_| |_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___|_| ") logger.info_center("|_| |_|\\___/_/\\_\\ |_| |_|\\___|\\__\\__,_| |_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___|_| ")
logger.info_center(" |___/ ") logger.info_center(" |___/ ")
system_ver = "Docker" if is_docker else "Linuxserver" if is_linuxserver else f"Python {platform.python_version()}" if is_lxml:
system_ver = "lxml Docker"
elif is_linuxserver:
system_ver = "Linuxserver"
elif is_docker:
system_ver = "Docker"
else:
system_ver = f"Python {platform.python_version()}"
logger.info(f" Version: {version[0]} ({system_ver}){f' (Git: {git_branch})' if git_branch else ''}") logger.info(f" Version: {version[0]} ({system_ver}){f' (Git: {git_branch})' if git_branch else ''}")
latest_version = util.current_version(version, branch=branch) latest_version = util.current_version(version, branch=branch)
new_version = latest_version[0] if latest_version and (version[1] != latest_version[1] or (version[2] and version[2] < latest_version[2])) else None new_version = latest_version[0] if latest_version and (version[1] != latest_version[1] or (version[2] and version[2] < latest_version[2])) else None