I am starting to build the service using the starter-project, I using https://github.com/drone/drone-go/blob/master/plugin/registry/handler.go and created the secret using openssl rand -hex 16
and start the service but don’t know what to pass on the curl command in order to test it.
15:07 $ curl -H “Authorization: basic XXXXXX” http://localhost:3000
Invalid or Missing Signature
and tried different authorization but not work
@ihakimi the request needs to be signed using http-signatures which can make testing with curl difficult. Instead you can use the drone CLI to test the extension. I believe the following command should work:
When you write an extension you can use repository and build metadata to dynamically determine the response. For example, you may want to use the repository name or build event type to determine the response. This data can also be simulated from the command line using the command line flags:
--ref value git reference (default: "refs/heads/master")
--source value source branch
--target value target branch
--before value commit sha before the change
--after value commit sha after the change
--event value build event
--repo value repository name
Hi @bradrydzewski,
I built a sevice for image priave registry puller
If I put private image on step its workign but when using the ecr/plugin and on the Dockerfile there is private image url its fails
@ihakimi the registry credential plugin provides the runner with credentials to pull pipeline step images, however, these credentials are not shared with plugins for security reasons. But no worries, we have another extension type that can be used to provide plugins with default configuration parameters (called an environment extension). We can help you combine these into a single Go program so that you can have a single codebase and share code. How about we setup a quick 30 minute call to walk through this?
I was able to run the registry plugin + env and its works successfully I have several question and use case come up from upgrade I did to our teams.
How can I do build & test on Kubernetes, I tried to run docker daemon and mount volume for next step but I am getting exit code 1 ? - Build and test Docker images with DIND
When I tried to use docker:dind service and mount the volume, the authentication to ECR repository (AWS) which work on ECR/Plugin and for regular step didn’t work when I run the command docker build. I got and error authorized.
Image caching, developers asked me for image caching for maximum performance, does it supported?
Ways to rollback my deployment I saw there is an endpoint but didn’t find any information regarding this