update api #46
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: Deploy to S3 and Lambda | |
# on: | |
# push: | |
# branches: ["develop", "release/*"] | |
# env: | |
# AWS_REGION_SEOUL: ap-northeast-2 | |
# AWS_REGION_US: us-east-1 | |
# BUCKET_NAME: ${{ secrets.BUCKET_NAME }} | |
# FUNCTION_NAME: chu-some-chu-some | |
# # containerDefinitions section of your task definition | |
# jobs: | |
# deploy_static: | |
# name: Deploy to S3 | |
# runs-on: ubuntu-latest | |
# environment: production | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# - name: Configure AWS credentials | |
# uses: aws-actions/configure-aws-credentials@v2 | |
# with: | |
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
# aws-region: ${{ env.AWS_REGION_SEOUL }} | |
# - name: Upload static files to S3 | |
# run: | | |
# aws s3 sync ./static/ s3://${{env.BUCKET_NAME}}/ --delete | |
# deploy_core: | |
# name: Deploy to lambda | |
# runs-on: ubuntu-latest | |
# environment: production | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# - name: Configure AWS credentials | |
# uses: aws-actions/configure-aws-credentials@v2 | |
# with: | |
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
# aws-region: ${{ env.AWS_REGION_US }} | |
# - name: Compress python code to zip | |
# run: | | |
# cd lambda_ai | |
# zip -r lambda.zip ./* | |
# aws lambda update-function-code --function-name ${{env.FUNCTION_NAME}} --zip-file fileb://lambda.zip | |
# build_kotlin: | |
# runs-on: ubuntu-latest | |
# steps: | |
# # 1. 저장소 체크아웃 | |
# - name: Checkout repository | |
# uses: actions/checkout@v3 | |
# # 2. Docker 로그인 (GitHub Packages 사용 시) | |
# - name: Log in to GitHub Container Registry | |
# uses: docker/login-action@v2 | |
# with: | |
# registry: ghcr.io | |
# username: ${{ github.actor }} | |
# password: ${{ secrets.GITHUB_TOKEN }} | |
# # 3. Docker 이미지 빌드 및 푸시 | |
# - name: Build and push Docker image | |
# run: | | |
# docker build -t ghcr.io/${{ github.repository }}/my-app:${{ github.sha }} . | |
# docker push ghcr.io/${{ github.repository }}/my-app:${{ github.sha }} | |
# deploy_kotlin: | |
# runs-on: ubuntu-latest | |
# needs: build_kotlin | |
# if: github.ref == 'refs/heads/main' | |
# steps: | |
# - name: Deploy to production | |
# run: | | |
# echo "배포 스크립트 추후에 추가예정" |