-
The second version is almost correct, the problem is this line:
patrik-upspot:
The main problem is that it has only the variable name, when lines written to |
Beta Was this translation helpful? Give feedback.
-
That does not work, too. Can you edit my Workflow like your suggestion? I dont know if i change it correctly. Is it possible to reuse the variables in the env section of the “yuyitech/github-action-rancher2@v0.0.1” step? |
Beta Was this translation helpful? Give feedback.
-
patrik-upspot:
I mean you should change this part of the “Push image” step
patrik-upspot:
to:
If that doesn’t work, what’s the error?
patrik-upspot:
No, the |
Beta Was this translation helpful? Give feedback.
-
My workflow:
It looks very good, but i get an error at the step Deploy to Rancher
It seems that i use the image variable wrong… But i dont know what i can do… |
Beta Was this translation helpful? Give feedback.
-
Looking at the example in the
|
Beta Was this translation helpful? Give feedback.
-
Sorry! Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hello,
i have a workflow and wanted to use variables in more than one steps. In step 1 i build the variable and in step 2 i reuse it.
Here is my workflow:
I will build my Docker, push it to private repository and redeploy my rancher with the new image. How can i use the Variables IMAGE_NAME, IMAGE_ID and VERSION in step “Rancher Deploy”?
I also tested it like this:
But with this version i get an error
Unable to process file command ‘env’ successfully.
Invalid environment variable format ‘IMAGE_NAME’
I hope you can help me ! :slight_smile:
Beta Was this translation helpful? Give feedback.
Looking at the example in the
yuyitech/github-action-rancher2
Readme it seems likeRANCHER_DATA
must be valid JSON. You’re missing quotes around the values you’re providing. Try: