From 3c1bfa5592f9b289f4b2f10b5bcbfc23eff2d8fc Mon Sep 17 00:00:00 2001 From: "DESKTOP-FSO9NHB\\User" Date: Fri, 4 Dec 2020 02:08:07 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8A=A4=ED=94=84=EB=A7=81=20=EB=B6=80?= =?UTF-8?q?=ED=8A=B8=EC=99=80=20AWS=EB=A1=9C=20=ED=98=BC=EC=9E=90=20?= =?UTF-8?q?=EA=B5=AC=ED=98=84=ED=95=98=EB=8A=94=20=EC=9B=B9=20=EC=84=9C?= =?UTF-8?q?=EB=B9=84=EC=8A=A4=20Chapter9=20=EC=A7=84=ED=96=89=EC=9D=84=20?= =?UTF-8?q?=EC=9C=84=ED=95=9C=20.travis.yml=20=ED=8C=8C=EC=9D=BC=EC=97=90?= =?UTF-8?q?=20deploy=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebServiceBySpringBootAndAWS/.travis.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/WebServiceBySpringBootAndAWS/.travis.yml b/WebServiceBySpringBootAndAWS/.travis.yml index 4fe507a..24df3cb 100644 --- a/WebServiceBySpringBootAndAWS/.travis.yml +++ b/WebServiceBySpringBootAndAWS/.travis.yml @@ -19,6 +19,23 @@ before_install: script: "./gradlew clean build" +before_deploy: + - zip -r springboot2-webservice * + - mkdir -p deploy + - mv springboot2-webservice.zip deploy/springboot2-webservice.zip + +deploy: + provider: s3 + access_key_id: $AWS_ACCESS_KEY # Travis repo settings에 설정된 값 + secret_access_key: $AWS_SECRET_KEY # Travis repo settings에 설정된 값 + + bucket: banjjoknim-springboot2-webservice-build # S3 버킷 + region: ap-northeast-2 + skip_cleanup: true + acl: private # zip 파일 접근을 private로 + local_dir: deploy # before_deploy에서 생성한 디렉토리 + wait-until-deployed: true + # 실행 완료 시 메일로 알람 notifications: email: