-
GitHub Actions Script:
Bash Script - containermaint.sh
I don’t have issues with other variables. Maybe it is the “/” or the concatenation of the variables? Even if I hard code the two environment variables in the GitHub Actions script, the result is the same. It doesn’t work. Any quick tip would be great. I’ve tried single quotes, double quotes, and it’s driving me crazy. Hard coding the variables in the bash script to the actual container name makes it work, but it would be cleaner if I could use the variables from the Actions script. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Forgot to export variables…
Now it works |
Beta Was this translation helpful? Give feedback.
Forgot to export variables…
run: ssh -o “StrictHostKeyChecking=no” -i key.txt root@${{secrets.digitalOceanIP}} export dockerHubUsername=${{secrets.dockerHubUsername}}; export dockerHubContainerName=${{secrets.dockerHubContainerName}}; scripts/containermaint.sh
Now it works