Skip to content

Passing variables to stack file #11

Answered by smashedr
francisdeh asked this question in Q&A
Discussion options

You must be logged in to vote

I believe that Portainer will substitute stack file variables, with environment variables.

So something like this should work:

with:
  env_json: '{"TAG": "tag-name"}'

With the provided stack file should work as expected.

I actually believe that the Portainer environment is only used to replace variables in the stack file. If this does not work, let me know and I will do a test on my side.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@francisdeh
Comment options

Answer selected by francisdeh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants