Skip to content

Commit 3c75279

Browse files
Merge pull request #54 from wafflestudio/dev
Release: fix cicd
2 parents 8ac8a76 + ba19a08 commit 3c75279

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/_deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: _deploy
33
on:
44
workflow_call:
55
inputs:
6+
bucket_name:
7+
required: true
8+
type: string
69
distribution_id:
710
required: true
811
type: string
@@ -42,5 +45,5 @@ jobs:
4245
AWS_SECRET_ACCESS_KEY: ${{ secrets.WAFFLE_CICD_SECRET_ACCESS_KEY }}
4346
AWS_REGION: ap-northeast-2
4447
run: |
45-
aws s3 sync ./dist s3://hangsha-web-dev --delete
48+
aws s3 sync ./dist s3://${{ inputs.bucket_name }} --delete
4649
aws cloudfront create-invalidation --distribution-id ${{ inputs.distribution_id }} --paths "/*"

.github/workflows/deploy-dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ jobs:
1010
deploy:
1111
uses: ./.github/workflows/_deploy.yml
1212
with:
13+
bucket_name: hangsha-web-dev
1314
distribution_id: E3FWQLYH2W4XLU
1415
secrets: inherit

.github/workflows/deploy-prod.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ jobs:
1010
deploy:
1111
uses: ./.github/workflows/_deploy.yml
1212
with:
13+
bucket_name: hangsha-web-prod
1314
distribution_id: E1UQAE6HOA8O14
1415
secrets: inherit

0 commit comments

Comments
 (0)