I am trying to write my first custom plugin for drone ci that will change git tag
and push back to repository.
The plugin will be written in GO. My question is, how to feed https://docs.drone.io/pipeline/environment/reference/ inside the GO application.
Do you I have to pass it like this:
kind: pipeline
type: docker
name: default
steps:
- name: custom/plugin
image: custom/tag
settings:
url: $DRONE_GIT_HTTP_URL`
and access in the GO application as follows:
func main() {
url := os.GetEnv("URL")