Skip to content
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

Unable to deploy stack when using together with stack.env #26

Open
theksk23 opened this issue Feb 1, 2024 · 0 comments
Open

Unable to deploy stack when using together with stack.env #26

theksk23 opened this issue Feb 1, 2024 · 0 comments

Comments

@theksk23
Copy link

theksk23 commented Feb 1, 2024

If you try using relative pathes from git together with environment-variables from stack.env you end up with the following:

an error occurred while running unpacker container with exit code 255: open /mnt/portainer-mounts/foo/bar/portainer-compose-unpacker/stacks/bar/bar/stack.env: no such file or directory 

The unpacker seems to take docker-compose.yml env_file: stack.env and adds it to its list-of-files to verify or so?
It does not exist of course, so we run into a failure deploying the stack

Adding the file to git will end up overwriting the values set in Portainer UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant