์๋ง์กด ๊ณต์ ๋ฌธ์:
https://docs.aws.amazon.com/ko_kr/codedeploy/latest/userguide/codedeploy-agent-operations-install-ubuntu.html
wget https://aws-codedeploy-ap-northeast-2.s3.ap-northeast-2.amazonaws.com/latest/install
install ํ์ผ ์คํ sudo ./install auto
codedeploy ์คํ ํ์ธ sudo service codedeploy-agent status
language: java
jdk:
- openjdk11
branches:
only:
- master
cache:
directories:
- '$HOME/ .m2/repository'
- '$HOME/ .gradle'
script: "./gradlew clean build"
before_install:
- chmod +x gradlew
before_deploy:
- zip -r practice-build *
- mkdir -p deploy
- mv practice-build.zip deploy/practice-build.zip
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_ACCESS_SECRET
bucket: practice-build
region: ap-northeast-2
skip_cleanup: true
acl: private
local_dir: deploy
wait-until-deployed: true
- provider: codedeploy
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_ACCESS_SECRET
bucket: //s3 ๋ฒํท ์ด๋ฆ
key: //s3์ ์กด์ฌํ๋ ํค ์ด๋ฆ
bundle_type: zip
application: //codedeploy ์ ํ๋ ์ผ์ด์
์ด๋ฆ
deployment_group: //codedeploy ๊ทธ๋ฃน์ด๋ฆ
region: ap-northeast-2
wait-until-deployed: true