You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose ssh and secrets inputs in workflow_call and pass them through
to docker/build-push-action.
Set up ssh-agent when ssh is configured so SSH_AUTH_SOCK is available
for BuildKit SSH mounts.
Copy file name to clipboardExpand all lines: .github/workflows/build.yml
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,10 @@ on:
76
76
type: string
77
77
description: "List of target platforms to build"
78
78
required: false
79
+
secrets:
80
+
type: string
81
+
description: "List of secrets to expose to the build"
82
+
required: false
79
83
push:
80
84
type: boolean
81
85
description: "Push image to the registry (for image output)"
@@ -90,6 +94,10 @@ on:
90
94
type: string
91
95
description: "Size of /dev/shm (e.g., 2g)"
92
96
required: false
97
+
ssh:
98
+
type: string
99
+
description: "List of SSH agent socket or keys to expose to the build"
100
+
required: false
93
101
sign:
94
102
type: string
95
103
description: "Sign attestation manifest for image output or artifacts for local output, can be one of auto, true or false. The auto mode will enable signing if push is enabled for pushing the image or if artifact-upload is enabled for uploading the local build output as GitHub Artifact"
@@ -133,6 +141,9 @@ on:
133
141
github-token:
134
142
description: "GitHub Token used to authenticate against the repository for Git context"
135
143
required: false
144
+
ssh-private-key:
145
+
description: "SSH private key used to populate SSH_AUTH_SOCK for buildx SSH mounts"
0 commit comments