Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EventBridge 대신 EventScheduler 사용하도록 코드 수정 #107

Merged
merged 19 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .dockerignore

This file was deleted.

2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintrc.js

This file was deleted.

86 changes: 0 additions & 86 deletions .github/workflows/deploy.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/dev-deploy-ai-news-agent-stack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: dev-deploy-ai-news-agent-stack
on:
workflow_dispatch:
inputs:
branch:
description: '배포할 브랜치'
required: true
default: 'develop'

jobs:
deploy-ai-news-agent-stack:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch }}

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12.2' # 개발 환경과 맞춤

- name: Setup SAM CLI
uses: aws-actions/setup-sam@v2

- name: Create .env file
run: echo "${{ secrets.NEWS_SCRAPER_LAMBDA_ENV_DEV }}" >> ./news-scraper-agent/.env

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_DEPLOY_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_DEPLOY_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}

- name: AWS Sam build
run: sam build --config-env dev

- name: AWS Sam Deploy
run: sam deploy --config-env dev --no-confirm-changeset --no-fail-on-empty-changeset
66 changes: 0 additions & 66 deletions .github/workflows/develop-news-scraper-deploy.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/develop-register-site-deploy.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/prod-deploy-ai-news-agent-stack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: prod-deploy-ai-news-agent-stack
on:
push:
branches:
- main

workflow_dispatch:
inputs:
branch:
description: '배포할 브랜치'
required: true
default: 'main'

jobs:
deploy-ai-news-agent-stack:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch }}

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12.2' # 개발 환경과 맞춤

- name: Setup SAM CLI
uses: aws-actions/setup-sam@v2

- name: Create .env file
run: echo "${{ secrets.NEWS_SCRAPER_LAMBDA_ENV_PROD }}" >> ./news-scraper-agent/.env

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_DEPLOY_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_DEPLOY_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}

- name: AWS Sam build
run: sam build --config-env prod

- name: AWS Sam Deploy
run: sam deploy --config-env prod --no-confirm-changeset --no-fail-on-empty-changeset
Loading
Loading