Skip to content

Commit

Permalink
Merge branch 'feature/deploy' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Seokyoung-Hong authored Oct 3, 2024
2 parents c96ad0b + a8128ec commit ceefb88
Show file tree
Hide file tree
Showing 12,746 changed files with 5,387 additions and 2,501,999 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
12 changes: 12 additions & 0 deletions .aws-sam/build.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file is auto generated by SAM CLI build command

[function_build_definitions.447f7c9f-164f-4a26-bf6a-38da6b6910b6]
codeuri = "/Users/cycrpto/Desktop/tuk_sandol_team/sandol"
runtime = "python3.11"
architecture = "x86_64"
handler = "app.handler"
manifest_hash = ""
packagetype = "Zip"
functions = ["FastApiFunction"]

[layer_build_definitions]
25 changes: 0 additions & 25 deletions .github/ISSUE_TEMPLATE/workflows/ci.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy to AWS

on:
push:
branches:
- feature/deploy

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11

- name: Install dependencies
run: |
python -m venv .venv
source .venv/bin/activate
pip install -r sandol/requirements.txt
- name: Install AWS SAM CLI
run: |
pip install aws-sam-cli
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2

- name: Build with SAM
run: sam build

- name: Package with SAM
run: sam package --output-template-file packaged.yaml --s3-bucket sandol-deploy-bucket

- name: Deploy with SAM
run: sam deploy --template-file packaged.yaml --stack-name fastapi-sam-app --capabilities CAPABILITY_IAM --no-confirm-changeset --no-fail-on-empty-changeset --region ap-northeast-2

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,5 @@ cython_debug/
instance/*
!instance/.gitignore

### others
**/node_mudules/
File renamed without changes.
Binary file removed aws-sandol-api/.serverless/aws-sandol.zip
Binary file not shown.

This file was deleted.

Loading

0 comments on commit ceefb88

Please sign in to comment.