스프링 부트와 AWS로 혼자 구현하는 웹 서비스 Chapter9 진행을 위한 .travis.yml 파일에 deploy 추가

This commit is contained in:
DESKTOP-FSO9NHB\User
2020-12-04 02:08:07 +09:00
parent 067980ed36
commit 3c1bfa5592

View File

@@ -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: