Skip to content

Commit

Permalink
fix: ci-cd env 적용 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ji-woong-song committed Nov 29, 2023
1 parent 84432a6 commit 0a05fd5
Showing 1 changed file with 12 additions and 23 deletions.
35 changes: 12 additions & 23 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ on:
pull_request:
branches: [ main ]
env:
DB_DOMAIN: ${{secrets.DB_DOMAIN}}
DB_PORT: ${{secrets.DB_PORT}}
DB_NAME: ${{secrets.DB_NAME}}
DB_USERNAME: ${{secrets.DB_USERNAME}}
DB_PASSWORD: ${{secrets.DB_PASSWORD}}
DB_DDL_MODE: ${{secrets.DB_DDL_MODE}}
DB_DOMAIN: ${{ secrets.DB_DOMAIN }}
DB_PORT: ${{ secrets.DB_PORT }}
DB_NAME: ${{ secrets.DB_NAME }}
DB_USERNAME: ${{ secrets.DB_USERNAME }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_DDL_MODE: ${{ secrets.DB_DDL_MODE }}

JWT_SECRET_KEY: ${{secrets.JWT_SECRET_KEY}}
JWT_EXPIRATION_MILLISECOND: ${{secrets.JWT_EXPIRATION_MILLISECOND}}
JWT_TOKEN_PREFIX: ${{secrets.JWT_TOKEN_PREFIX}}
JWT_TOKEN_HEADER: ${{secrets.JWT_TOKEN_HEADER}}
JWT_SECRET_KEY: ${{ secrets.JWT_SECRET_KEY }}
JWT_EXPIRATION_MILLISECOND: ${{ secrets.JWT_EXPIRATION_MILLISECOND }}
JWT_TOKEN_PREFIX: ${{ secrets.JWT_TOKEN_PREFIX }}
JWT_TOKEN_HEADER: ${{ secrets.JWT_TOKEN_HEADER }}

APP_SERVER_PORT: ${{secrets.APP_SERVER_PORT}}
APP_SERVER_ADDRESS: ${{secrets.APP_SERVER_ADDRESS}}
APP_SERVER_PORT: ${{ secrets.APP_SERVER_PORT }}
APP_SERVER_ADDRESS: ${{ secrets.APP_SERVER_ADDRESS }}
jobs:
build:
runs-on: ubuntu-22.04 # 3 실행 환경 지정
Expand Down Expand Up @@ -63,14 +63,3 @@ jobs:
aws deploy create-deployment --application-name ${{ secrets.CODE_DEPLOY_APPLICATION_NAME }} --deployment-config-name CodeDeployDefault.AllAtOnce \
--deployment-group-name ${{ secrets.CODE_DEPLOY_DEPLOYMENT_GROUP_NAME }} --s3-location bucket=${{secrets.S3_BUCKET_NAME}},key=$GITHUB_SHA.zip,bundleType=zip
# 4 빈스토크 배포
# - name: Beanstalk Deploy
# uses: einaregilsson/beanstalk-deploy@v20
# with:
# aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# application_name: dguonoff-backend-prod
# environment_name: Dguonoff-backend-prod-env
# version_label: github-action-${{steps.current-time.outputs.formattedTime}}
# region: ap-northeast-2
# deployment_package: backend/dguonoff/build/libs/${{env.artifact}}

0 comments on commit 0a05fd5

Please sign in to comment.