From 6ef203a3215b49fc8058cbd15995d3ff7dbcdd22 Mon Sep 17 00:00:00 2001 From: chaewss Date: Sat, 19 Aug 2023 18:27:23 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20workflow=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20#95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 압축된 build 파일 공유를 위해 작업을 하나로 합치는 작업 --- .github/workflows/gradle.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 1a6dbd1e..851da2d8 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -14,19 +14,19 @@ env: CODE_DEPLOY_DEPLOYMENT_GROUP_NAME: cvsgo-server-group jobs: - test_and_build: + deploy: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 - + - name: Set up JDK 17 uses: actions/setup-java@v3 with: java-version: '17' distribution: 'temurin' - + - name: Grant execute permission for gradlew run: chmod +x ./gradlew @@ -42,11 +42,6 @@ jobs: run: zip -qq -r ./$GITHUB_SHA.zip . shell: bash - deploy: - runs-on: ubuntu-latest - needs: test_and_build - - steps: - name: AWS Configure credentials uses: aws-actions/configure-aws-credentials@v1 with: @@ -56,7 +51,7 @@ jobs: - name: Upload to S3 run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://${{ env.S3_BUCKET_NAME }}/${{ env.PROJECT_NAME }}/$GITHUB_SHA.zip - + - name: Deploy with AWS codeDeploy run: aws deploy create-deployment --application-name ${{ env.CODE_DEPLOY_APPLICATION_NAME }}