I am trying to generate an HTML file with .sh and variable that defined in the shell
[root@ip-xxx-xx-x-xxx Reporting]: IMAGE_TAG=xyzabc
.sh file code
#!/bin/bash
echo "<!DOCTYPE html>" > fargateproductiondeploy.html
echo "<html> <body>" >> fargateproductiondeploy.html
echo "<h2>Following Docker container
will be deployed will be Deployed in production up on Approval </h2>
<ol>" >> fargateproductiondeploy.html
echo "<li>$IMAGE_TAG </li>" >> fargateproductiondeploy.html
After running the ./generatehtml.sh out from HTML file was
Following Docker container will be deployed will be Deployed in
production upon Approval
1.
export IMAGE_TAG=xyzabc?