Skip to content

Fix Metadata Extraction from FFMPEG with Leading Zeros in Track Numbers and Mixed-Case Tags and Add Support for Discnumber #550

Fix Metadata Extraction from FFMPEG with Leading Zeros in Track Numbers and Mixed-Case Tags and Add Support for Discnumber

Fix Metadata Extraction from FFMPEG with Leading Zeros in Track Numbers and Mixed-Case Tags and Add Support for Discnumber #550

Workflow file for this run

name: 'Build docker image on PR'
on:
pull_request:
branches: [main]
paths-ignore:
- "**.md"
- "*.txt"
- ".github/**"
- "!.github/workflows/pr_build_docker.yml"
permissions:
packages: write
jobs:
deploy:
runs-on: ubuntu-latest
if: github.repository == github.event.pull_request.head.repo.full_name
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2-
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
install: true
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Build with Maven
run: mvn package -DskipTests -B -P docker
- name: Upload war file
uses: actions/upload-artifact@v4
with:
name: airsonic-advanced
path: airsonic-main/target/airsonic.war
retention-days: 30
overwrite: true
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push images to GHCR
uses: docker/build-push-action@v5
with:
file: install/docker/Dockerfile
context: install/docker
platforms: linux/amd64
push: true
tags: |
ghcr.io/kagemomiji/airsonic-advanced:pr-${{ github.event.pull_request.number }}