Skip to content

Commit

Permalink
๐Ÿ”ง Blue-Green ๋ฐฐํฌ๋ฅผ ์œ„ํ•œ deploy script ์ˆ˜์ • (#154)
Browse files Browse the repository at this point in the history
* feat: blue-green ๋ฐฐํฌ๋ฅผ ์œ„ํ•œ deploy script ์ˆ˜์ •

* feat: deploy script์— workflow dispatch ์ถ”๊ฐ€

* fix: ๋ฌด์ค‘๋‹จ ๋ฐฐํฌ ํŒŒ์ดํ”„๋ผ์ธ ์ˆ˜์ • ๋ฐ script ๋ณ„๋„ ์ •์˜
  • Loading branch information
jinlee1703 authored Aug 24, 2024
1 parent 96d9bd8 commit f3216b4
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/deploy-external-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ on:
description: '๋ฐฐํฌํ•  Api ๋ชจ๋“ˆ ํƒœ๊ทธ ์ •๋ณด (Api-v*.*.*)'
required: true
type: string
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
tags:
description: 'Test scenario tags'
required: false
type: boolean
environment:
description: 'Environment to run tests against'
type: environment
required: false

permissions:
contents: read
Expand Down Expand Up @@ -64,6 +83,8 @@ jobs:
- name: AWS SSM Send-Command
uses: peterkimzz/aws-ssm-send-command@master
id: ssm
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}
with:
aws-region: ${{ secrets.AWS_REGION }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand All @@ -74,4 +95,5 @@ jobs:
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker system prune -a -f
docker pull pennyway/pennyway-was
docker-compose up -d
chmod +x deploy.sh
bash -x ./deploy.sh

0 comments on commit f3216b4

Please sign in to comment.