From 0a81d7c0128eaa5af8730d056d3a5766153dc758 Mon Sep 17 00:00:00 2001 From: Ilyes512 Date: Tue, 7 Apr 2026 17:38:31 +0200 Subject: [PATCH 1/2] Allow passing secrets --- build-image/action.yml | 5 +++++ build-target/action.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/build-image/action.yml b/build-image/action.yml index ea25dd3..70a23df 100644 --- a/build-image/action.yml +++ b/build-image/action.yml @@ -22,6 +22,10 @@ inputs: description: Custom image description (overrides repository description) type: string required: false + secrets: + description: List of secrets to expose to the build + type: string + required: false runs: using: composite @@ -56,6 +60,7 @@ runs: outputs: type=image,name=${{ inputs.image-name }},push-by-digest=true,name-canonical=true,oci-mediatypes=true cache-from: type=gha,scope=${{ inputs.dockerfile }}-${{ env.PLATFORM_PAIR }} cache-to: type=gha,mode=max,scope=${{ inputs.dockerfile }}-${{ env.PLATFORM_PAIR }} + secrets: ${{ inputs.secrets }} - name: Export digest shell: bash run: | diff --git a/build-target/action.yml b/build-target/action.yml index 4831e46..a54eaea 100644 --- a/build-target/action.yml +++ b/build-target/action.yml @@ -26,6 +26,10 @@ inputs: description: Custom image description (overrides repository description) type: string required: false + secrets: + description: List of secrets to expose to the build + type: string + required: false runs: using: composite @@ -64,6 +68,7 @@ runs: outputs: type=image,name=${{ inputs.image-name }},push-by-digest=true,name-canonical=true,oci-mediatypes=true cache-from: type=gha,scope=${{ inputs.dockerfile }}-${{ env.PLATFORM_PAIR }}-${{ inputs.target }} cache-to: type=gha,mode=max,scope=${{ inputs.dockerfile }}-${{ env.PLATFORM_PAIR }}-${{ inputs.target }} + secrets: ${{ inputs.secrets }} - name: Export digest (${{ inputs.target }}) shell: bash run: | From 1c0bfd89b39cab3a3018401ff09dd48b30d4dcf0 Mon Sep 17 00:00:00 2001 From: Ilyes512 Date: Tue, 7 Apr 2026 17:42:00 +0200 Subject: [PATCH 2/2] Updated self-ref version --- .github/workflows/build-php.yml | 6 +++--- .github/workflows/build.yml | 2 +- .github/workflows/merge-php.yml | 6 +++--- .github/workflows/merge.yml | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-php.yml b/.github/workflows/build-php.yml index 223f2aa..9fe2d0c 100644 --- a/.github/workflows/build-php.yml +++ b/.github/workflows/build-php.yml @@ -43,21 +43,21 @@ jobs: id: buildx uses: docker/setup-buildx-action@v4 - name: Build and Push by digest (runtime) - uses: specsnl/github-actions/build-target@1.1.1 + uses: specsnl/github-actions/build-target@1.2.0 with: platform: ${{ inputs.platform }} image-name: ${{ steps.image_name.outputs.lowercase }} dockerfile: ${{ inputs.dockerfile }} target: runtime - name: Build and Push by digest (builder) - uses: specsnl/github-actions/build-target@1.1.1 + uses: specsnl/github-actions/build-target@1.2.0 with: platform: ${{ inputs.platform }} image-name: ${{ steps.image_name.outputs.lowercase }} dockerfile: ${{ inputs.dockerfile }} target: builder - name: Build and Push by digest (builder_nodejs) - uses: specsnl/github-actions/build-target@1.1.1 + uses: specsnl/github-actions/build-target@1.2.0 with: platform: ${{ inputs.platform }} image-name: ${{ steps.image_name.outputs.lowercase }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0f7e5a2..7acd4f5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,7 +50,7 @@ jobs: with: string: ${{ inputs.image-name }} - name: Build and Push by digest - uses: specsnl/github-actions/build-image@1.1.1 + uses: specsnl/github-actions/build-image@1.2.0 with: dockerfile: ${{ inputs.dockerfile }} platform: ${{ inputs.platform }} diff --git a/.github/workflows/merge-php.yml b/.github/workflows/merge-php.yml index 5732674..66e5481 100644 --- a/.github/workflows/merge-php.yml +++ b/.github/workflows/merge-php.yml @@ -59,21 +59,21 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v4 - name: Create Manifest (runtime) - uses: specsnl/github-actions/create-manifest-for-target@1.1.1 + uses: specsnl/github-actions/create-manifest-for-target@1.2.0 with: image-name: ${{ steps.image_name.outputs.lowercase }} target: runtime description: ${{ inputs.description-runtime }} title: ${{ inputs.title-runtime }} - name: Create Manifest (builder) - uses: specsnl/github-actions/create-manifest-for-target@1.1.1 + uses: specsnl/github-actions/create-manifest-for-target@1.2.0 with: image-name: ${{ steps.image_name.outputs.lowercase }} target: builder description: ${{ inputs.description-builder }} title: ${{ inputs.title-builder }} - name: Create Manifest (builder_nodejs) - uses: specsnl/github-actions/create-manifest-for-target@1.1.1 + uses: specsnl/github-actions/create-manifest-for-target@1.2.0 with: image-name: ${{ steps.image_name.outputs.lowercase }} target: builder_nodejs diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index bf95a8f..ec6428f 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -42,7 +42,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v4 - name: Create Manifest - uses: specsnl/github-actions/create-manifest@1.1.1 + uses: specsnl/github-actions/create-manifest@1.2.0 with: image-name: ${{ steps.image_name.outputs.lowercase }} title: ${{ inputs.title }}