-
-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Templates for manual workflows env vars #3326
Comments
I propose to just display ENV vars from workflow and set default value defined in yaml. steps:
- name: build
image: golang
environment:
- CGO=0
- GOOS=linux
- GOARCH=amd64
- DISABLE_CACHE
commands:
- go build
- go test |
Yeah this could be useful. Maybe we should make a opt-in/out for this for internal env vars? |
Do you mean built-in-environment-variables? I'm afraid, it is not gonna work. Just look, how much vars Server sends to Agent :) (if you on Kubernetes, just describe pod). |
No I mean if you define env vars in your workflow you should be able to opt out of this new feature |
Just one thing to consider: We are using the manual pipeline execution to perform builds too, but there are much more environment variables in the steps than need to be set / overriden while performing a build / deployment. Would a config like environement-input:
- BUILD_NUMER: <proposed value>
MATCH_REX: <some regex to validate the input> be an option? At the moment we have a seperate step to validate the ENV vars to overcome typos. |
That looks good. |
I'm thinking towards having special syntax for inputs now as both of you have mentioned. # Environments
# SKIP_PACKAGE=true|false - skip package step
# APP_TAG=0.0.1 - override CI_COMMIT_TAG var, application release version
steps:
set-env:
image: debian:bookworm-slim
commands:
- .cicd/set-env.sh
package:
when:
evaluate: 'SKIP_PACKAGE != "true"'
image: python:3.12.1-slim-bookworm
commands:
- .cicd/package.sh
secrets:
- twine_username
- twine_password As we can see, I use variables that aren't defined in
|
Clear and concise description of the problem
When running many manual workflows, it is not very handy to input the keys on every run.
Suggested solution
Create a system for github action like form where you add default values, checkboxes and more.

The syntax should be like in github actions:
Maybe adding an extra type of event for tis.
Alternative
No response
Additional context
No response
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]The text was updated successfully, but these errors were encountered: