Skip to content

Commit

Permalink
[Docs] Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sanggae4133 authored Feb 17, 2024
1 parent 57d4cd0 commit 8cbed1f
Showing 1 changed file with 2 additions and 37 deletions.
39 changes: 2 additions & 37 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

name: Java CI with Gradle

on:
Expand Down Expand Up @@ -84,12 +77,8 @@ jobs:
target: /home/ubuntu # specify the target path if needed
source: . # specify the source directory or file if needed
command: sudo systemctl start redis-server
port: 22
timeout: 30s
command_timeout: 10m
tar_exec: tar
proxy_port: 22
proxy_timeout: 30s




deploy:
Expand All @@ -98,30 +87,6 @@ jobs:
runs-on: ubuntu-22.04

steps:
# (6) AWS 인증 (IAM 사용자 Access Key, Secret Key 활용)
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}

# (7) 빌드 결과물을 S3 버킷에 업로드
# - name: Upload to AWS S3
# run: |
# aws deploy push \
# --application-name ${{ env.CODE_DEPLOY_APPLICATION_NAME }} \
# --s3-location s3://$S3_BUCKET_NAME/$GITHUB_SHA.zip \
# --source .

# # (8) S3 버킷에 있는 파일을 대상으로 CodeDeploy 실행
# - name: Deploy to AWS EC2 from S3
# run: |
# aws deploy create-deployment \
# --application-name ${{ env.CODE_DEPLOY_APPLICATION_NAME }} \
# --deployment-config-name CodeDeployDefault.AllAtOnce \
# --deployment-group-name ${{ env.CODE_DEPLOY_DEPLOYMENT_GROUP_NAME }} \
# --s3-location bucket=$S3_BUCKET_NAME,key=$GITHUB_SHA.zip,bundleType=zip
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
Expand Down

0 comments on commit 8cbed1f

Please sign in to comment.