Skip to content

Commit d0138f3

Browse files
authored
Merge pull request #937 from TheCaptain989/lidarr-flac2mp3
lidarr: flac2mp3 release 2.4.0
2 parents 03cb4a9 + b4533b5 commit d0138f3

5 files changed

Lines changed: 22 additions & 9 deletions

File tree

.github/workflows/BuildImage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
echo "BASEIMAGE=${{ env.BASEIMAGE }}" >> $GITHUB_OUTPUT
2121
echo "MODNAME=${{ env.MODNAME }}" >> $GITHUB_OUTPUT
2222
# **** If the mod needs to be versioned, set the versioning logic below. Otherwise leave as is. ****
23-
MOD_VERSION=${GITHUB_SHA:0:7}
23+
MOD_VERSION="2.4.0"
2424
echo "MOD_VERSION=${MOD_VERSION}" >> $GITHUB_OUTPUT
2525
outputs:
2626
GITHUB_REPO: ${{ steps.outputs.outputs.GITHUB_REPO }}

Dockerfile

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

33
## Buildstage ##
4-
FROM ghcr.io/linuxserver/baseimage-alpine:3.19 as buildstage
5-
4+
FROM ghcr.io/linuxserver/baseimage-alpine:3.20 as buildstage
65
ARG MOD_VERSION
76

87
# copy local files
@@ -17,8 +16,14 @@ RUN \
1716

1817
## Single layer deployed image ##
1918
FROM scratch
19+
ARG MOD_VERSION
2020

21-
LABEL maintainer="TheCaptain989"
21+
LABEL org.opencontainers.image.title=lidarr-flac2mp3
22+
LABEL org.opencontainers.image.description="A Docker Mod to Lidarr to automatically convert FLAC files to MP3s, or other format"
23+
LABEL org.opencontainers.image.version="${MOD_VERSION}"
24+
LABEL org.opencontainers.image.source="https://github.com/TheCaptain989/lidarr-flac2mp3"
25+
LABEL org.opencontainers.image.authors="TheCaptain989 <[email protected]>"
26+
LABEL org.opencontainers.image.licenses=GPL-3.0-only
2227

2328
# Add files from buildstage
2429
COPY --from=buildstage /root-layer/ /

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ A [Batch Mode](./README.md#batch-mode) is also supported that allows usage outsi
55

66
>**NOTE:** This mod supports Linux OSes only.
77
8-
Production Container info: ![Docker Image Size](https://img.shields.io/docker/image-size/linuxserver/mods/lidarr-flac2mp3 "Container Size")
8+
Production Container info: ![Docker Image Size](https://img.shields.io/docker/image-size/linuxserver/mods/lidarr-flac2mp3 "Container Size")
9+
[![linuxserver/docker-mods/mods/lidarr-flac2mp3](https://img.shields.io/badge/dynamic/json?logo=github&url=https%3A%2F%2Fraw.githubusercontent.com%2Fthecaptain989%2Fghcr-pulls%2Fmaster%2Findex.json&query=%24%5B%3F(%40.owner%3D%3D%22linuxserver%22%20%26%26%20%40.repo%3D%3D%22docker-mods%22%20%26%26%20%40.image%3D%3D%22mods%22%20%26%26%20%40.tag%3D%3D%22lidarr-flac2mp3%22)%5D.pulls&label=ghcr%20pulls&color=1572A4)](https://github.com/linuxserver/docker-mods/pkgs/container/mods)
910
Development Container info:
1011
![Docker Image Size](https://img.shields.io/docker/image-size/thecaptain989/lidarr-flac2mp3 "Container Size")
11-
![Docker Pulls](https://img.shields.io/docker/pulls/thecaptain989/lidarr-flac2mp3 "Container Pulls")
12+
![Docker Pulls](https://img.shields.io/docker/pulls/thecaptain989/lidarr-flac2mp3?logo=docker "Container Pulls")
13+
[![GitHub Super-Linter](https://github.com/TheCaptain989/lidarr-flac2mp3/actions/workflows/linter.yml/badge.svg)](https://github.com/TheCaptain989/lidarr-flac2mp3/actions/workflows/linter.yml "Linter Job")
1214

1315
# Installation
1416
1. Pull the [linuxserver/lidarr](https://hub.docker.com/r/linuxserver/lidarr "LinuxServer.io's Lidarr container") docker image from GitHub Container Registry or Docker Hub:

SECURITY.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ Only the latest major and minor version are supported.
66

77
| Version | Supported |
88
| ------- | ------------------ |
9-
| 2.3.x | :heavy_check_mark: |
10-
| < 2.3 | :x: |
9+
| 2.4.x | :heavy_check_mark: |
10+
| < 2.4 | :x: |
1111

1212
## Reporting a Vulnerability
1313

1414
Vulnerability reports or security concerns may be submitted as a new issue in GitHub, or emailed to:
1515

16-
16+
1717
1818
Please allow 48-hours for an initial response. An issue will be entered if accepted.

root/usr/local/bin/flac2mp3.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,12 @@ elif [ -f "$flac2mp3_config" ]; then
644644
[[ $flac2mp3_xml_entity = "ApiKey" ]] && flac2mp3_apikey=$flac2mp3_xml_content
645645
done < $flac2mp3_config
646646

647+
# Allow use of environment variables from https://github.com/Lidarr/Lidarr/pull/4812
648+
[ -n "${LIDARR__SERVER__PORT}" ] && flac2mp3_port="${LIDARR__SERVER__PORT}"
649+
[ -n "${LIDARR__SERVER__URLBASE}" ] && flac2mp3_urlbase="${LIDARR__SERVER__URLBASE}"
650+
[ -n "${LIDARR__SERVER__BINDADDRESS}" ] && flac2mp3_bindaddress="${LIDARR__SERVER__BINDADDRESS}"
651+
[ -n "${LIDARR__AUTH__APIKEY}" ] && flac2mp3_apikey="${LIDARR__AUTH__APIKEY}"
652+
647653
# Check for localhost
648654
[[ $flac2mp3_bindaddress = "*" ]] && flac2mp3_bindaddress=localhost
649655

0 commit comments

Comments
 (0)