docker / build-push-action

GitHub Action to build and push Docker images with Buildx
https://github.com/marketplace/actions/build-and-push-docker-images
Apache License 2.0
4.13k stars 532 forks source link

Support insecure mode #940

Closed enzofoucaud closed 10 months ago

enzofoucaud commented 10 months ago

Description

No mode to manage insecure mode which causes certificate verification problems

env: GIT_SSL_NO_VERIFY: 1 not working with: insecure: true not working

 > [internal] load git source https://git.XXX.local/sandbox/test_gitea_action.git#17ebab4f6749eda50fa378ae762ba3a7e0e016f6:
0.044 Initialized empty Git repository in /var/lib/buildkit/runc-overlayfs/snapshots/snapshots/1/fs/
0.077 fatal: Not a valid object name 17ebab4f6749eda50fa378ae762ba3a7e0e016f6^{commit}
0.165 fatal: unable to access 'https://git.XXX.local/sandbox/test_gitea_action.git/': SSL certificate problem: unable to get local issuer certificate
------
ERROR: failed to solve: failed to read dockerfile: failed to fetch remote https://git.XXX.local/sandbox/test_gitea_action.git: exit status 128
::error::buildx failed with: ERROR: failed to solve: failed to read dockerfile: failed to fetch remote https://git.XXX.local/sandbox/test_gitea_action.git: exit status 128
crazy-max commented 10 months ago

Not related to the action but BuildKit, please open an issue on https://github.com/moby/buildkit