본문 바로가기
[AWS]/GITLAB

38장. 사용할 수 없는 환경 변수 문제 해결

by SAMSUNG CLOUD-OKY 2022. 2. 20.
반응형

 

Troubleshooting environment variables not being available

Problem: Surge is not deploying.

This solution is relevant if you are getting this message on the console output.

The most likely cause for this is the environment variables not being available inside this branch.

You can make sure this is the cause by using the echo command in your script.

  1. test job:
  2. script:
  3. - echo $SURGE_LOGIN

 

Possible solutions

1. Make sure that you have used the correct key when defining the variables.

  • SURGE_LOGIN
  • SURGE_TOKEN

2. Make sure the variables are NOT protected.

I hope this helps. Let me know if you have any other questions related to this.

 

 

 

반응형

댓글