Skip to content

Feat : 픽셀 범위 확대 #115

Feat : 픽셀 범위 확대

Feat : 픽셀 범위 확대 #115

Workflow file for this run

name: Backend Dev Server CD
on:
push:
branches: [ "develop" ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: JDK 17 설치
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
- name: env 설정
run: |
echo "DB_URI=${{ secrets.DB_URI }}" >> .env
echo "DB_USERNAME=${{ secrets.DB_USERNAME }}" >> .env
echo "DB_PASSWORD=${{ secrets.DB_PASSWORD }}" >> .env
echo "SPRING_PROFILES_ACTIVE=dev" >> .env
echo "X-NCP-APIGW-API-KEY-ID=${{ secrets.NAVER_APIKEYID }}" >> .env
echo "X-NCP-APIGW-API-KEY=${{ secrets.NAVER_APIKEY }}" >> .env
echo "JWT_SECRET_KEY=${{ secrets.JWT_SECRET_KEY }}" >> .env
echo "KAKAO_APP_ID=${{ secrets.KAKAO_APP_ID }}" >> .env
echo "REDIS_HOST=${{ secrets.REDIS_HOST }}" >> .env
echo "AWS_ACCESS_KEY=${{ secrets.AWS_ACCESS_KEY }}" >> .env
echo "AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }}" >> .env
echo "AWS_S3_BUCKET=${{ secrets.AWS_S3_BUCKET }}" >> .env
echo "APPLE_APP_ID=${{ secrets.APPLE_APP_ID }}" >> .env
echo "APPLE_TEAM_ID=${{ secrets.APPLE_TEAM_ID }}" >> .env
echo "APPLE_KEY_ID=${{ secrets.APPLE_KEY_ID }}" >> .env
echo "APPLE_PRIVATE_KEY=${{ secrets.APPLE_PRIVATE_KEY }}" >> .env
echo "LATEST_VERSION=${{ secrets.LATEST_VERSION }}" >> .env
echo "FORCE_UPDATE_VERSION=${{ secrets.FORCE_UPDATE_VERSION }}" >> .env
echo "GEOCODING_API=${{ secrets.GEOCODING_API }}" >> .env
echo "FIREBASE_SECRET_KEY=${{ secrets.FIREBASE_SECRET_KEY }}" >> .env
echo "SPRING_PROFILES_ACTIVE=dev" >> .env
- name: gradlew에 실행 권한 부여
run: chmod +x ./gradlew
- name: 프로젝트 빌드
run: ./gradlew clean bootjar -x test
- name: 압축
run: zip -r ./ground_flip.zip .
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: ${{ secrets.AWS_REGION}}
- name: S3에 업로드
run: aws s3 cp ground_flip.zip s3://ground-flip-dev/deploy/ground_flip.zip --region ap-northeast-2
- name: Code Deploy 로 배포
run: >
aws deploy create-deployment --application-name ground-flip-dev
--deployment-config-name CodeDeployDefault.AllAtOnce
--deployment-group-name ground_flip_dev
--s3-location bucket=ground-flip-dev,bundleType=zip,key=deploy/ground_flip.zip