Configure the volumes path using variables or secrets #3238
-
For example, I'm copying the build artifacts to the host's path in one of the steps, but I don't want to publicize my server's path, or I want to make woodpecker-ci's configuration more generic. Can I use variables or secrets instead of hardcoding? deploy-to-host:
image: busybox
commands:
- cp -R public /hugo-blog/
volumes:
- <MY_HOST_PATH>:/hugo-blog |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
With global env vars, this is possible.
This is not possible currently as secrets are not passed to the preprocessor/env var substitution. |
Beta Was this translation helpful? Give feedback.
-
🥳👍 Thanks to @qwerty287's answer, I managed to achieve my goal through global environment variables. |
Beta Was this translation helpful? Give feedback.
With global env vars, this is possible.
This is not possible currently as secrets are not passed to the preprocessor/env var substitution.