Skip to content

Commit

Permalink
Fix/cd s3 (#89)
Browse files Browse the repository at this point in the history
* 🚀 [Fix]: change s3 upload command

[aws-cli v2 s3 ref](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/index.html)

* 🚀 [Chore]: add workflow_dispatcher

* 🚀 [Chore]: 각 workflow에 workflow_dispatch 정의

* 🚀 [Chore]: add manual trigger

* 🐛 [Fix]: tab 추가

* 🐛 [Fix]: yaml syntax

* ⚗️ [Fix]: manual dispatch

- 각 prod/dev workflows 안에 묶이게 변경
  • Loading branch information
koreanddinghwan authored Sep 15, 2023
1 parent 964ee88 commit afe2b6a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
name: Dev Deploy to AWS

on:
workflow_dispatch:
inputs:
comment:
description: '수동 trigger 사유'
default: 'ex) 서버 설정 변경 등'

push:
branches:
- develop
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
name: Production Deploy to AWS

on:
workflow_dispatch:
inputs:
comment:
description: '수동 trigger 사유'
default: 'ex) 서버 설정 변경 등'

push:
branches:
- master
Expand Down Expand Up @@ -65,7 +71,7 @@ jobs:
if: success()
run: |
zip --symlinks -r server.zip .
aws s3 put-object --bucket manito42-codedeploy-main-bucket --key server.zip --body server.zip
aws s3 cp server.zip s3://manito42-codedeploy-main-bucket/server.zip
- name: Create CodeDeploy Deployment
if: success()
Expand Down

0 comments on commit afe2b6a

Please sign in to comment.