Skip to content

Dynamic global environment #1080

Closed Answered by todah-zg
gopherios asked this question in Q&A
Discussion options

You must be logged in to vote

Please follow this guide on how to set environment variables during builds.

In short, you can save the variable to the $CM_ENV file in one script to be able to access it in subsequent scripts.

scripts:
  - name: Step 1
    script: |
       echo "APP_STORE_CONNECT_PRIVATE_KEY='my secret value'" >> $CM_ENV
  - name: Step 2
    script: |
       echo $APP_STORE_CONNECT_PRIVATE_KEY

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gopherios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants