For Gitlab CI/CD, I was trying to register a runner using "gitlab-runner register" command; but I was continuously getting error " x509: certificate signed by unknown authority". After trying to fix the issue by SSL certificates path, I finally solved it using CURL. Here is the command I used.
curl --cacert <cert_name_fullchain>.crt --request POST "https://<domain>/api/v4/runners/" --form "token=<the_token>" --form "description=test" --form "tag_list=test".
curl --cacert <cert_name_fullchain>.crt --request POST "https://<domain>/api/v4/runners/" --form "token=<the_token>" --form "description=test" --form "tag_list=test".
0 comments:
Post a Comment