Stocki
Stocki8mo ago

Error when trying to deploy a script from one environment to another

Hi, We're working with Windmill EE v1.281.3 and have 3 environment (dev, staging, production). I'm currently facing an issue when trying to deploy some script from dev to staging The current script already exists on the staging platform. We recently managed to use policy and rights on environment and resources, can it come from here ? Also we may encounter a potential desynchronization of our environment, some staging scripts being ahead of the dev version. Is there a way to update the dev environment with the staging version ? We actually don't use git for script versioning.
No description
10 Replies
rubenf
rubenf8mo ago
Hi @Stocki , the error is saying that you do not have permission to create this script on the target workspace possibly you are not admin there and the folder doesn't exist yet or you have no write permissiom there ?
Stocki
Stocki8mo ago
Sure, I only have reading permission on the staging environment I'm not admin anymore
rubenf
rubenf8mo ago
then yes you cannot deploy with only read permission 🙂
Stocki
Stocki8mo ago
Hmmm right
rubenf
rubenf8mo ago
you cannot do more with deployment that you would be able to do otherwise
Stocki
Stocki8mo ago
Is there a way to make the script read only on stg ? In a way that nobody could edit it, we would have to update it on dev then deploy it on stg
rubenf
rubenf8mo ago
permissions are always relative to ppl. Admins can always edit stuff, and owners can always edit stuff if you can deploy something, you can edit it
Stocki
Stocki8mo ago
Alright
rubenf
rubenf8mo ago
I recommend the git workflow for what you want to do you could have CI being the only one able to deploy to staging/prod and no one having the same creds as CI to write stuff
Stocki
Stocki8mo ago
We'll check that, thank you for your quick answer 🙏