2020年5月21日木曜日

CodePipeline for Beanstalk

version: 0.2

environment_variables:
  plaintext:
    REPOS_NAME: "okay-regi"
    KEY_NAME: "test-user"
    PLATFORM_NAME: "PHP 5.4 running on 64bit Amazon Linux/2.9.1"
    APP_NAME: "okay-regi"

phases:
  install:
    commands:
      - pip install awsebcli
  build:
    commands:
      - ebp init -r ${AWS_REGION} ${PLATFORM_NAME}
      - ebp create
  post_build:
    commands:
      - git config --global credential.helper '!aws --region ${AWS_REGION} codecommit credential-helper $@'
      - git config --global credential.UseHttpPath true
      - git clone https://git-codecommit.${AWS_REGION}.amazonaws.com/v1/repos/${REPOS_NAME} ../${REPOS_NAME}
      - cd ../${REPOS_NAME} && eb init -r ${AWS_REGION} -k ${KEY_NAME} --source codecommit/${REPOS_NAME}/master ${APP_NAME}
      - cd ../${REPOS_NAME} && eb upgrade --force

0 件のコメント:

コメントを投稿

php log(ECS ログ出力)

# PHPエラーログの設定 ENV PHP_INI_DIR /usr/local/etc/php RUN { \ echo 'log_errors = On' ; \ echo 'error_log = /proc/self/...