Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 07 20:55
    @bradrydzewski banned @izznogooood
dayu
@dayuoba
@tboerger yes, i've two drone servers with one gitlab, but no weather what case i set, both will be triggered. if i set include a.host, b.host will be triggered too!
Thomas Boerger
@tboerger
You got to set a list of allowed domains without the protocol, e.g. cloud.drone.io or drone.owncloud.com
There you can see the by instance triggers docs https://docker-runner.docs.drone.io/configuration/trigger/
dayu
@dayuoba
@tboerger thx for your repley, i've followed the docs, and i didn't speicify the protocal. only host e.g. cicd-test.my.com cicd-pre.my.com
Thomas Boerger
@tboerger
And it's still executing on the the other if you exclude it? Maybe you got a typo within the condition or something like that? For me this condition worked so far
dayu
@dayuoba
@tboerger i put when on steps instead of trigger at global, when works but trigger not
Thomas Boerger
@tboerger
triggers and not trigger is what you got there?
Scratch that, it's trigger, singular
dayu
@dayuoba
as the result of my testting, trigger field never worked no matter which case is set
Thomas Boerger
@tboerger
Maybe you could share an exact example?
Newton
@leninalive
@bradrydzewski sure I have 1.x version. It masks single-line secrets well, however, multi-line secrets are not masked.
dayu
@dayuoba
image.png
i've two server, both have 3 agents, a is cicd.iyanzhi.com b is aidrone.iyanzhi.com , seeing the above pic, when i pushed both server will be triggered and run pipelines
what i expect is that only aidrone.iyanzhi.com will run pipelines
rahul-shivalkar-cldcvr
@rahul-shivalkar-cldcvr
Hello Folks,
I am new to Drone and need help to understand basics .
Can we use drone pipeline to deploy app on Kubernetes?
Can anybody please help me with this?
dayu
@dayuoba
@rahul-shivalkar-cldcvr yes you can, there are some k8s plugins on the official plugin site, like helm plugins
also for custom needs, you can wrap a kubectl image to build a custom plugin
rahul-shivalkar-cldcvr
@rahul-shivalkar-cldcvr
@dayuoba
Thank you so much for proving this valuable information.
Can you please share knowledge base if you have with you.
Thank you in advance
dayu
@dayuoba
@rahul-shivalkar-cldcvr you just follow the official doc for writing pipelines, use plugins, writing plugins. it's quite easy
rahul-shivalkar-cldcvr
@rahul-shivalkar-cldcvr
@dayuoba Thank you.
KreativeKrise
@KreativeKrise
Is there a way to change the default .drone.ymlto .drone.yamlif I activate a new repository? Actually I have to change it manually after activating a repository.
shubhankarpaul
@shubhankarpaul
Hello I want to install drone exec
but the download link is not working
@KreativeKrise you can change the default file name via repository setting
Thomas Boerger
@tboerger
If you don't define a version it doesn't work, but you can download it from https://github.com/drone-runners/drone-runner-exec/releases
Alexander Koch
@meersau
Ok, but one thing. What ist localhost:8080. Did not configure anything. And no default point to this. As in the docs
Brad Rydzewski
@bradrydzewski
@meersau we cannot advise without seeing your configuration
Provide your server configuration
Provide your agent configuration
Enable DRONE_LOGS_TRACE=true on the server
Enable DRONE_LOGS_TRACE=true on the agent
Provide the agent logs with trace enabled
Provide the server logs with trace enabled
Provide the Yaml configuration file
Alexander Koch
@meersau

To answer myself and perhaps other. If the required DRONE_RPC_HOST is not set, as in my case a copy&paste error, a default of localhost:8080 is used.

An error if a required VAR is not set would be helpful

@bradrydzewski sorry, I pressed ENTER too fast.
Right now I stuck with plugins/ansible, vault_password.
Just want to inform that I found it.
Alexander Koch
@meersau
Or in the tread about this error a hint that this is an indication that the DRONE_RPC_HOST ist not set
Vytautas Maciulskis
@vyckou
question about monitoring of the drone master, its database and drone-agents
1) Guys how are you doing monitoring of the mysql/postgres database? Running prometheus exporter for the database? As personally I am missing metrics from the drone metrics endpoint around calls to database.
2) would be nice to hear about monitoring of the drone agents and platform below the Drone -agent container. For now I am exposing docker daemon metrics fro prometheus on the VMs. Anyone doing anything more interesting to see, how the agents and drone steps are are doing?
KreativeKrise
@KreativeKrise
@shubhankarpaul I know that I can change it in the repository settings. But so I have to do that manually for every repository. Isn't there a way to set a default somewhere?
Brian Curtich
@briancurt
Devon
@pydo
Is there a way to programmatically trigger builds in drone? I'm looking to use drone as pure CD tool, so I wouldn't be triggering it using git webhooks.
According to the docs we can restart builds with the API https://docs.drone.io/api/endpoints/builds/build_start/ Restart the specified build, but I don't see a way of triggering a new one.
Brad Rydzewski
@bradrydzewski
a new endpoint was recently added for this. See drone/drone#2679
Devon
@pydo
@bradrydzewski Thanks for the info, any idea when drone/drone@b950e28 will be released?
Brad Rydzewski
@bradrydzewski
I don't have a planned release date for 1.5, but you can download the :latest docker image which has all changes in master
Amanda Edades
@aedades
@bradrydzewski When will the nomad-related config settings be included in the Configuration Reference? https://docs.drone.io/installation/reference/
Would there be interest in a Drone + agents in Nomad tutorial?
(unless it would be covered in the docs site)
Brad Rydzewski
@bradrydzewski
it is not documented because we aren't ready to officially support it yet
we also may move the nomad functionality out of Drone core to a separate repository/add-on. It will not go away. We are just careful to promote use of something until we are confident in the implementation and support strategy
Amanda Edades
@aedades
:+1:
fredrikstormo
@fredrikstormo
how can I search for containers used by a specific drone job? It doesn't look like drone sets any labels on the containers it starts
Brad Rydzewski
@bradrydzewski
drone adds a bunch of labels to containers that it creates
            map[string]string{
                "io.drone":                "true",
                "io.drone.build.number":   fmt.Sprint(m.Build.Number),
                "io.drone.repo.namespace": m.Repo.Namespace,
                "io.drone.repo.name":      m.Repo.Name,
                "io.drone.stage.name":     m.Stage.Name,
                "io.drone.stage.number":   fmt.Sprint(m.Stage.Number),
                "io.drone.ttl":            fmt.Sprint(time.Duration(m.Repo.Timeout) * time.Minute),
                "io.drone.expires":        fmt.Sprint(time.Now().Add(time.Duration(m.Repo.Timeout)*time.Minute + time.Hour).Unix()),
                "io.drone.created":        fmt.Sprint(time.Now().Unix()),
                "io.drone.protected":      "false",
            },