LoginSignup
3
2

More than 3 years have passed since last update.

circleci 環境変数の設定

Last updated at Posted at 2020-07-14

circleciで環境変数を知らなかったので、備忘録メモ

circleciで環境変数を設定

1. pipelinesの右上にあるProject Settingをクリック
スクリーンショット 2020-07-14 11.12.50.png

2.ページ左のEnvironment Variablesをクリック
スクリーンショット 2020-07-14 11.14.34.png
 
3.Add Variableをクリックして設定していく
スクリーンショット 2020-07-14 11.16.43.png

config.yml

.circleci/config.yml
      - run:
          name: Environment Variables
          command: |
            touch .env
            echo GOOGLEMAP=$GOOGLEMAP > .env
            echo S3_ACCESS_KEY_ID=$S3_ACCESS_KEY_ID > .env
            echo S3_SECRET_ACCESS_KEY=$S3_SECRET_ACCESS_KEY > .env

circleciで設定した環境変数を.envに入れていく

3
2
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
3
2