chore(deps): bump com.mattbertolini:liquibase-slf4j from 5.0.0 to 5.1.0 #329
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v6 | |
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 }} |