LoginSignup
1
1

More than 5 years have passed since last update.

circle.ymlの環境変数でコマンドの結果を設定する方法

Last updated at Posted at 2017-04-19

結論

$()の中にコマンドを書く(勿論パイプ渡し等も大丈夫)

machine:
  environment:
    EXAMPLE: $(echo "example environment variable")

ダメなパターン1(そのまま文字列になる)

machine:
  environment:
    EXAMPLE: echo "example environment variable"

ダメなパターン2(ビルドエラー)

machine:
  environment:
    EXAMPLE: `echo "example environment variable"`
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1