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 件のコメント:
コメントを投稿