Skip to content

Commit

Permalink
Test: CI 파이프라인 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
tioon committed Apr 23, 2024
1 parent d9bba4b commit e235fcd
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Spring CI with Deployment to Naver Cloud
name: Feature Branch CI

on:
push:
Expand All @@ -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

0 comments on commit e235fcd

Please sign in to comment.