File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -146,18 +146,16 @@ jobs:
146146
147147 echo "Found BuildKit container: ${BUILDKIT_CONTAINER}"
148148
149- # Copy the CA certificate into the BuildKit container
150- docker cp /tmp/registry-ca.crt "${BUILDKIT_CONTAINER}:/usr/local/share/ca-certificates/registry-ca.crt"
151-
152- # Update CA certificates inside the BuildKit container
153- docker exec "$BUILDKIT_CONTAINER" update-ca-certificates 2>/dev/null || \
154- docker exec "$BUILDKIT_CONTAINER" cat /usr/local/share/ca-certificates/registry-ca.crt >> /etc/ssl/certs/ca-certificates.crt
149+ # Append the CA certificate directly to the CA bundle inside the container
150+ # BuildKit uses Alpine which has certs at /etc/ssl/certs/ca-certificates.crt
151+ docker cp /tmp/registry-ca.crt "${BUILDKIT_CONTAINER}:/tmp/registry-ca.crt"
152+ docker exec "$BUILDKIT_CONTAINER" sh -c 'cat /tmp/registry-ca.crt >> /etc/ssl/certs/ca-certificates.crt'
155153
156154 # Restart buildkitd to pick up the new CA bundle
157155 docker restart "$BUILDKIT_CONTAINER"
158156
159157 # Wait for buildkitd to be ready
160- sleep 3
158+ sleep 5
161159
162160 echo "✓ CA certificate configured in BuildKit container"
163161
You can’t perform that action at this time.
0 commit comments