-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Add the ability to override default env variables for Kubernetes pipeline steps #3164
Comments
@dominic-p I got buildah up and running (somehow) on k8s.... just have a look here: https://github.com/maltegrosse/woodpecker-buildah (please consider the performance vs. security aspect carefully) appreciate feedback / improvements :) |
Thanks for sharing this, @maltegrosse; that looks really cool! I'm curious how you are passing in registry credentials (see #3582). That's pretty much the last issue I'm having with my cobbled together setup. By the way, in my particular setup, I have good control over the hosts, so I can make sure that things like fuse are installed and configured correctly to avoid the issues with vfs. |
@dominic-p I dont pass any secrets directly from k8s to the ci pipeline - I let users setup their own (gitea) repo credentials. |
Thanks for the confirmation. That's kind of what I figured. The plugin looks pretty cool, by the way. I'll definitely keep an eye on it. :) |
@dominic-p I am facing issues upgrading to woodpecker latest version and my plugin...do you have similiar issues using fuse? |
I saw that in the tracker. I'm not currently running the latest WP version in my cluster, so I'm not sure. If I can get some time I'll upgrade and test it out. That permission denied error looks pretty familiar. I would definitely check the audit logs on your node to see if you can find a corresponding entry. |
Hello, I have the same problem.
After |
Clear and concise description of the problem
I'm trying to run a buildah container in my pipeline which requires the
HOME
variable to be set to/home/build
. Currently, theHOME
variable seems to be hardcoded to/root
here.Suggested solution
It would be nice if we could use the standard pipeline environment variable config to override the
HOME
(and other) variables like so:Alternative
I'm not sure if running a command before my main command like
export HOME=/home/build
will work. I haven't tested it yet. If that works, it would be a nice workaround. But, it would still be good to be able to set the variables directly, in my opinion.Update: I have confirmed that I can run this at the beginning of my build scripts, and it works. So, we have a good workaround. I still do think it would be nice to be able to specify it in the pipeline config with other env variables.
Additional context
This is part of my ongoing efforts to get buildah running on Woodpecker (#2545). This should be the last piece of the puzzle once the AppArmor PR lands!
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: