0

I am looking to implement a shell script that will have the capability to push the image to multiple targets and multiple envs. The script should be parameterized to select any target and any env. Can you please suggest some tips for me to begin.

I am new to scripting and haven't done only a few. Any suggestions will be appreciated.

I am planning to implement this in Jenkins. So if there is a better workaround than a script feel free to comment.

Thanks, Manny

  • 1
    could you give more details? what images? what do you mean by push? deploy or just copy? what are the targets, envs? and so on. – Dieselist May 07 '15 at 12:06

1 Answers1

0

If i understand your question, then what you need to use is getopts in bash. Here is a great answer about it

Community
  • 1
  • 1
Doron Shai
  • 688
  • 2
  • 13
  • 29