Skip to content

Bump org.springframework.boot:spring-boot-starter-parent from 3.2.5 to 3.3.1 #178

Bump org.springframework.boot:spring-boot-starter-parent from 3.2.5 to 3.3.1

Bump org.springframework.boot:spring-boot-starter-parent from 3.2.5 to 3.3.1 #178

name: 'Build docker image on PR from fork'
on:
pull_request_target:
branches: [main]
types:
- labeled
jobs:
deploy:
runs-on: ubuntu-latest
if: github.repository != github.event.pull_request.head.repo.full_name && contains(github.event.pull_request.labels.*.name, 'safe to test')
steps:
- run: |
echo ${{github.repository}}
echo ${{github.event.pull_request.head.repo.full_name}}}
- 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 }}