From 7938ece4360858607af87e7216ca96013c271443 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 3 Sep 2026 09:14:00 -0700 Subject: [PATCH] docker: sign the per-version foundationdb and rocksdb builds They push to the same repository as the releases, so an admission policy that verifies chrislusf/seaweedfs would otherwise reject them. Claude-Session: https://claude.ai/code/session_01A5zMqzaUg1Snur4Yg8xJGa --- .github/workflows/container_foundationdb_version.yml | 9 +++++++++ .github/workflows/container_rocksdb_version.yml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/workflows/container_foundationdb_version.yml b/.github/workflows/container_foundationdb_version.yml index 5e2ac35e1..bfb39511b 100644 --- a/.github/workflows/container_foundationdb_version.yml +++ b/.github/workflows/container_foundationdb_version.yml @@ -30,6 +30,9 @@ permissions: jobs: build-foundationdb-image: runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - name: Checkout @@ -154,6 +157,7 @@ jobs: fi - name: Build and push image + id: build uses: docker/build-push-action@v7 with: context: ./docker @@ -171,3 +175,8 @@ jobs: org.opencontainers.image.description=SeaweedFS is a distributed storage system for blobs, objects, files, and data lake, to store and serve billions of files fast! org.opencontainers.image.vendor=Chris Lu + - name: Sign + if: github.event_name != 'pull_request' + uses: ./.github/actions/sign-image + with: + images: chrislusf/seaweedfs@${{ steps.build.outputs.digest }} diff --git a/.github/workflows/container_rocksdb_version.yml b/.github/workflows/container_rocksdb_version.yml index 0ab6eeb3e..f54190d10 100644 --- a/.github/workflows/container_rocksdb_version.yml +++ b/.github/workflows/container_rocksdb_version.yml @@ -22,6 +22,9 @@ permissions: jobs: build-rocksdb-image: runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - name: Checkout @@ -94,6 +97,7 @@ jobs: password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push image + id: build uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v2 with: context: ./docker @@ -108,3 +112,8 @@ jobs: org.opencontainers.image.title=seaweedfs org.opencontainers.image.description=SeaweedFS is a distributed storage system for blobs, objects, files, and data lake, to store and serve billions of files fast! org.opencontainers.image.vendor=Chris Lu + + - name: Sign + uses: ./.github/actions/sign-image + with: + images: chrislusf/seaweedfs@${{ steps.build.outputs.digest }}