Skip to content

v6

v6 #29

Workflow file for this run

# 注意!!
# 此 PR 禁止使用包含敏感数据或者发布型的操作,避免恶意用户通过 PR 对供应链发起攻击
name: Java CI
on:
pull_request:
branches: [ "master", "release", "v6", "api-std" ]
workflow_dispatch:
jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get WebUI Files
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cd src/main/resources && git clone --depth 1 --branch gh-pages "https://github.com/PBH-BTN/pbh-fe.git" static&& cd ../../..
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "21"
cache: 'maven'
cache-dependency-path: '**/pom.xml'
- name: Build with Maven
run: mvn -B clean package --file pom.xml -P thin-sqlite-packaging
- name: Set Up QEMU
uses: docker/setup-qemu-action@v3
- name: Set Up Buildx
uses: docker/setup-buildx-action@v3
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: ghostchu/peerbanhelper-snapshot
tags: |
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,ci-jvm-universal
type=raw,ci
type=sha
- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile-CI
push: false
platforms: |
linux/amd64
linux/arm64/v8
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}-jvm-universal