Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,15 @@ on:
github-token:
description: "GitHub Token used to authenticate against the repository for Git context"
required: false
build-secrets:
description: List of secrets to expose to the build (e.g., key=string, SSH_AUTH_KEY=mykey)
required: false
build-secret-envs:
description: List of secret env vars to expose to the build (e.g., key=envname, MY_SECRET=MY_ENV_VAR)
required: false
build-secret-files:
description: List of secret files to expose to the build (e.g., key=filename, MY_SECRET=./secret.txt)
required: false
outputs:
meta-json:
description: "Metadata JSON output (for image output)"
Expand Down Expand Up @@ -833,7 +842,11 @@ jobs:
platforms: ${{ steps.prepare.outputs.platform }}
provenance: ${{ steps.prepare.outputs.provenance }}
sbom: ${{ steps.prepare.outputs.sbom }}
secret-envs: GIT_AUTH_TOKEN=GIT_AUTH_TOKEN
secrets: ${{ secrets.build-secrets }}
secret-envs: |
GIT_AUTH_TOKEN=GIT_AUTH_TOKEN
${{ secrets.build-secret-envs }}
secret-files: ${{ secrets.build-secret-files }}
shm-size: ${{ inputs.shm-size }}
target: ${{ inputs.target }}
ulimit: ${{ inputs.ulimit }}
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,13 @@ jobs:

### Secrets

| Name | Default | Description |
|------------------|-----------------------|--------------------------------------------------------------------------------|
| `registry-auths` | | Raw authentication to registries, defined as YAML objects (for `image` output) |
| `github-token` | `${{ github.token }}` | GitHub Token used to authenticate against the repository for Git context |
| Name | Default | Description |
|----------------------|-----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|
| `registry-auths` | | Raw authentication to registries, defined as YAML objects (for `image` output) |
| `github-token` | `${{ github.token }}` | GitHub Token used to authenticate against the repository for Git context |
| `build-secrets` | List | List of [secrets](https://docs.docker.com/build/ci/github-actions/secrets/) to expose to the build (e.g., `key=string`, `SSH_AUTH_KEY=mykey`) |
| `build-secret-envs` | List/CSV | List of [secret env vars](https://docs.docker.com/build/ci/github-actions/secrets/) to expose to the build (e.g., `key=envname`, `MY_SECRET=MY_ENV_VAR`) |
| `build-secret-files` | List | List of [secret files](https://docs.docker.com/build/ci/github-actions/secrets/) to expose to the build (e.g., `key=filename`, `MY_SECRET=./secret.txt`) |

### Outputs

Expand Down