Test: CI 파이프라인 테스트 #10
Workflow file for this run
This file contains 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
name: Feature Branch CI | |
on: | |
push: | |
branches: | |
- feature/ci/#9 | |
pull_request: | |
branches: | |
- feature/ci/#9 | |
jobs: | |
build-and-package: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
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: | | |
cd baebae-BE | |
chmod +x ./gradlew | |
./gradlew build | |
- name: Create deployment package | |
run: | | |
zip -r deployment-package.zip baebae-BE/build/libs/baebae-BE-0.0.1-SNAPSHOT.jar | |
- name: Install Naver Cloud CLI | |
run: | | |
pip install awscli==1.15.85 | |
- name: Configure NAVER CLI credentials | |
run: aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} && aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: Upload to Naver Cloud Object Storage | |
run: | | |
./ncloud/bin/ncloud object-storage upload --bucket-name baebae-bucket --source ./deployment-package.zip --object-name deployment-package.zip |