From 536924ab9756fbb266a69e240b8cc2bc92e0e12a Mon Sep 17 00:00:00 2001 From: Isaac Neher Date: Mon, 27 Apr 2026 21:22:50 -0500 Subject: [PATCH 1/2] Modernize GitHub Actions workflow and migrate cosign to v2. Bumps all action SHA pins to current major versions and updates cosign from v1.4.0 to v2.4.1, which is required because cosign-installer v1's download URLs stopped serving binaries after Sigstore deprecated their GCS bucket releases in July 2023. --- .github/workflows/docker-publish.yml | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 7d6a6da..7868ae9 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -35,26 +35,26 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 # Install the cosign tool except on PR # https://github.com/sigstore/cosign-installer - name: Install cosign if: github.event_name != 'pull_request' - uses: sigstore/cosign-installer@1e95c1de343b5b0c23352d6417ee3e48d5bcd422 + uses: sigstore/cosign-installer@7e8b541eb2e61bf99390e1afd4be13a184e9ebc5 # v3.10.1 with: - cosign-release: 'v1.4.0' + cosign-release: 'v2.4.1' - # Workaround: https://github.com/docker/build-push-action/issues/461 + # Required by docker/build-push-action to enable buildkit features. - name: Setup Docker buildx - uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf + uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0 # Login against a Docker registry except on PR # https://github.com/docker/login-action - name: Log into registry ${{ env.REGISTRY }} if: github.event_name != 'pull_request' - uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c + uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -64,7 +64,7 @@ jobs: # https://github.com/docker/metadata-action - name: Extract Docker metadata id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} @@ -72,7 +72,7 @@ jobs: # https://github.com/docker/build-push-action - name: Build and push Docker image for Java 17 id: build-and-push-java17 - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2 with: context: . file: java17_linux.Dockerfile @@ -84,7 +84,7 @@ jobs: # https://github.com/docker/build-push-action - name: Build and push Docker image for Java 11 id: build-and-push-java11 - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2 with: context: . file: java11_linux.Dockerfile @@ -100,15 +100,11 @@ jobs: # https://github.com/sigstore/cosign - name: Sign the published Docker image if: ${{ github.event_name != 'pull_request' }} - env: - COSIGN_EXPERIMENTAL: "true" # This step uses the identity token to provision an ephemeral certificate # against the sigstore community Fulcio instance. - run: cosign sign ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:java17-linux + run: cosign sign --yes ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:java17-linux # Repeat signing process for the Java 11 - linux image. - name: Sign the published Docker image if: ${{ github.event_name != 'pull_request' }} - env: - COSIGN_EXPERIMENTAL: "true" - run: cosign sign ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:java11-linux \ No newline at end of file + run: cosign sign --yes ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:java11-linux \ No newline at end of file From 2a63027d01ef62db89b0daea26838983408b1da1 Mon Sep 17 00:00:00 2001 From: Isaac Neher Date: Tue, 28 Apr 2026 13:39:14 -0500 Subject: [PATCH 2/2] Remove the daily build schedule since the focal jdk image we are using is no longer being updated --- .github/workflows/docker-publish.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 7868ae9..d4a77d5 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -6,8 +6,7 @@ name: Publish Docker to Container # documentation. on: - schedule: - - cron: '16 1 * * *' + workflow_dispatch: push: branches: [ main ] # Publish semver tags as releases.