mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-07-27 15:45:21 +00:00
Update build.yml
This commit is contained in:
parent
67d3f28f53
commit
fd072cccba
72
.github/workflows/build.yml
vendored
72
.github/workflows/build.yml
vendored
@ -223,75 +223,3 @@ jobs:
|
|||||||
chmod +x ./testing/test.sh
|
chmod +x ./testing/test.sh
|
||||||
chmod +x ./testing/test_disabledEndpoints.sh
|
chmod +x ./testing/test_disabledEndpoints.sh
|
||||||
./testing/test.sh
|
./testing/test.sh
|
||||||
|
|
||||||
test-build-docker-images:
|
|
||||||
if: github.event_name == 'pull_request' && needs.files-changed.outputs.project == 'true'
|
|
||||||
needs: [files-changed, build, check-generateOpenApiDocs, check-licence]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
docker-rev: ["docker/backend/Dockerfile", "docker/backend/Dockerfile.ultra-lite", "docker/backend/Dockerfile.fat"]
|
|
||||||
steps:
|
|
||||||
- name: Harden Runner
|
|
||||||
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
|
|
||||||
with:
|
|
||||||
egress-policy: audit
|
|
||||||
|
|
||||||
- name: Checkout Repository
|
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
|
|
||||||
- name: Set up JDK 17
|
|
||||||
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
|
|
||||||
with:
|
|
||||||
java-version: "17"
|
|
||||||
distribution: "temurin"
|
|
||||||
|
|
||||||
- name: Set up Gradle
|
|
||||||
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
|
|
||||||
with:
|
|
||||||
gradle-version: 8.14
|
|
||||||
|
|
||||||
- name: Build application
|
|
||||||
run: ./gradlew clean build
|
|
||||||
env:
|
|
||||||
DISABLE_ADDITIONAL_FEATURES: true
|
|
||||||
STIRLING_PDF_DESKTOP_UI: false
|
|
||||||
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
id: buildx
|
|
||||||
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
|
|
||||||
|
|
||||||
- name: Build ${{ matrix.docker-rev }}
|
|
||||||
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
|
|
||||||
with:
|
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
|
||||||
context: .
|
|
||||||
file: ./${{ matrix.docker-rev }}
|
|
||||||
push: false
|
|
||||||
cache-from: type=gha
|
|
||||||
cache-to: type=gha,mode=max
|
|
||||||
platforms: linux/amd64,linux/arm64/v8
|
|
||||||
provenance: true
|
|
||||||
sbom: true
|
|
||||||
|
|
||||||
- name: Set artifact name
|
|
||||||
id: artifact-name
|
|
||||||
run: |
|
|
||||||
ARTIFACT_NAME="reports-docker-$(echo '${{ matrix.docker-rev }}' | sed 's|/|-|g')"
|
|
||||||
echo "name=$ARTIFACT_NAME" >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
||||||
- name: Upload Reports
|
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@v4.6.2
|
|
||||||
with:
|
|
||||||
name: ${{ steps.artifact-name.outputs.name }}
|
|
||||||
path: |
|
|
||||||
build/reports/tests/
|
|
||||||
build/test-results/
|
|
||||||
build/reports/problems/
|
|
||||||
retention-days: 3
|
|
||||||
if-no-files-found: warn
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user