SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - name: Terraform-Plan
  2.       if: github.event.action == 'prereleased' || github.event.action == 'released'
  3.       env:
  4.         GOOGLE_APPLICATION_CREDENTIALS: ./gcloud.json
  5.         ENVIRONMENT: ${{ matrix.environment }}
  6.       run: |
  7.  
  8.         if [[ $ENVIRONMENT == 'tests' ]]; then
  9.           SUB_KEY=${{ secrets.tls_key_tests }}
  10.           SUB_CRT=${{ secrets.tls_certificate_tests }}
  11.  
  12.         elif [[ $ENVIRONMENT == 'production' ]]; then
  13.           SUB_KEY=${{ secrets.tls_key_production }}
  14.           SUB_CRT=${{ secrets.tls_certificate_production }}
  15.  
  16.         elif [[ $ENVIRONMENT == 'demo' ]]; then
  17.           SUB_KEY=${{ secrets.tls_key_demo }}
  18.           SUB_CRT=${{ secrets.tls_certificate_demo }}
  19.  
  20.         else
  21.           SUB_KEY=${{ secrets.tls_key_staging }}
  22.           SUB_CRT=${{ secrets.tls_certificate_staging }}
  23.         fi
  24.  
  25.         terraform plan -input=false -lock-timeout=60s -var 'gcp_project=enotarylog-248314' -var "sub_tls_key=$SUB_KEY" -var "sub_tls_certificate=$SUB_CRT" -var 'gcp_region=${{ matrix.region }}' -var "tls_key=${{ secrets.tls_key }}" -var "tls_certificate=${{ secrets.tls_certificate }}" -out ${{ matrix.environment }}.plan ./clusters/${{ matrix.environment }}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top