test : 테스트용 UI 및 설정파일 수정 #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: JAR 빌드 | |
| run: ./mvnw package | |
| - name: S3 업로드 | |
| uses: aws-actions/configure-aws-credentials@v2 | |
| with: | |
| role-to-assume: arn:aws:iam::123456789:role/GitHubActionsRole | |
| aws-region: ap-northeast-2 | |
| - name: S3에 아티팩트 업로드 | |
| run: | | |
| aws s3 cp target/*.jar s3://my-deploy-bucket/app.jar | |
| - name: CodeDeploy 배포 트리거 | |
| run: | | |
| aws deploy create-deployment \ | |
| --application-name MyApp \ | |
| --deployment-group-name Production \ | |
| --s3-location bucket=my-deploy-bucket,key=app.jar,bundleType=jar |