Created
          September 12, 2019 13:52 
        
      - 
      
- 
        Save matt-FFFFFF/db116933e7cf86b429f9a06729c6ec6a to your computer and use it in GitHub Desktop. 
    Helm get slot
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | if [ "`helm get values --all $(releaseName) | grep -Po 'productionSlot: \K.*'`" == "green" ]; then | |
| echo "##vso[task.setvariable variable=deploymentslot;isSecret=false;isOutput=true;]blue" | |
| echo "##vso[task.setvariable variable=currentslot;isSecret=false;isOutput=true;]green" | |
| else | |
| echo "##vso[task.setvariable variable=deploymentslot;isSecret=false;isOutput=true;]green" | |
| echo "##vso[task.setvariable variable=currentslot;isSecret=false;isOutput=true;]blue" | |
| fi | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment