From e235fcd183c5a3ab1a89ac74250ad67809a4aaed Mon Sep 17 00:00:00 2001 From: kimyechan Date: Tue, 23 Apr 2024 18:06:30 +0900 Subject: [PATCH] =?UTF-8?q?Test:=20CI=20=ED=8C=8C=EC=9D=B4=ED=94=84?= =?UTF-8?q?=EB=9D=BC=EC=9D=B8=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CI.yaml | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 6b980512..b84f377f 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -1,4 +1,4 @@ -name: Spring CI with Deployment to Naver Cloud +name: Feature Branch CI on: push: @@ -22,19 +22,26 @@ jobs: java-version: '17' distribution: 'adopt' + - name: Create and configure application.yml + run: | + echo "${{ secrets.APPLICATION_YML }}" > baebae-BE/src/main/resources/application.yml + echo "${{ secrets.APPLICATION_DEPLOY_YML }}" > baebae-BE/src/main/resources/application-deploy.yml + - name: Build with Gradle run: | - ls - cd baebae-Be - ls + cd baebae-BE + chmod +x ./gradlew ./gradlew build - name: Create deployment package run: | - zip -r deployment-package.zip build/libs/*.jar + zip -r test-package.zip baebae-BE/build/libs/baebae-BE-0.0.1-SNAPSHOT.jar + + - name: Configure AWS CLI && Upload file to Object Storage + env: + AWS_ACCESS_KEY_ID: ${{ secrets.NAVER_ACCESS_KEY }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.NAVER_SECRET_KEY }} + AWS_DEFAULT_REGION: 'us-east-2' + run: | + aws --endpoint-url=https://kr.object.ncloudstorage.com s3 cp test-package.zip s3://baebae-bucket/test-package - - name: Upload deployment package - uses: actions/upload-artifact@v2 - with: - name: deployment-package - path: deployment-package.zip