From 5e2259b4c6c2986ce3b0c124770ac384168ad982 Mon Sep 17 00:00:00 2001 From: Erich Keil Date: Wed, 13 May 2026 19:20:48 -0500 Subject: [PATCH 1/3] chore(deps): bump pdftk and jdk to latest --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 10dac8e..498ad68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,10 @@ FROM alpine WORKDIR /app -ENV PATH "$PATH:/app" +ENV PATH="$PATH:/app" -ARG OPENJDK_RELEASE=8 -ARG PDFTK_RELEASE=v3.0.6 +ARG OPENJDK_RELEASE=25 +ARG PDFTK_RELEASE=v3.3.3 RUN set -x \ && apk add \ @@ -21,7 +21,7 @@ RUN set -x \ https://gitlab.com/pdftk-java/pdftk \ && gradle --no-daemon --parallel --quiet --no-build-cache \ -p pdftk shadowJar \ - && mv pdftk/build/libs/pdftk.jar ./ \ + && mv pdftk/build/libs/pdftk-all.jar ./pdftk.jar \ && apk del .build-deps \ && rm -rf \ /root/.gradle \ From fd5f4846f658233f845a515474eec1f22f36d0ca Mon Sep 17 00:00:00 2001 From: Erich Keil Date: Wed, 13 May 2026 19:27:53 -0500 Subject: [PATCH 2/3] feat(ci): add publish to ghcr.io --- .github/workflows/build.yml | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..aedf6ab --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,50 @@ +name: Build and Push + +on: + push: + branches: [master] + tags: ["v*"] + pull_request: + branches: [master] + +env: + IMAGE_NAME: ghcr.io/${{ github.repository }} + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - uses: actions/checkout@v4 + + - uses: docker/setup-buildx-action@v3 + + - uses: docker/login-action@v3 + if: github.event_name != 'pull_request' + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - uses: docker/metadata-action@v5 + id: meta + with: + images: ${{ env.IMAGE_NAME }} + tags: | + type=raw,value=latest,enable={{is_default_branch}} + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha + + - uses: docker/build-push-action@v6 + with: + context: . + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max From 49a6b482c9ed7521d257833113477d40b2d819de Mon Sep 17 00:00:00 2001 From: Erich Keil Date: Wed, 13 May 2026 19:35:07 -0500 Subject: [PATCH 3/3] fix(ci): drop tag trigger, set pdftk v as docker tag --- .github/workflows/build.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aedf6ab..62fe502 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,12 +3,12 @@ name: Build and Push on: push: branches: [master] - tags: ["v*"] pull_request: branches: [master] env: IMAGE_NAME: ghcr.io/${{ github.repository }} + PDFTK_VERSION: "3.3.3" jobs: build: @@ -35,10 +35,7 @@ jobs: images: ${{ env.IMAGE_NAME }} tags: | type=raw,value=latest,enable={{is_default_branch}} - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - type=semver,pattern={{major}} - type=sha + type=raw,value=${{ env.PDFTK_VERSION }} - uses: docker/build-push-action@v6 with: