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

πŸ”§ Blue-Green 배포λ₯Ό μœ„ν•œ deploy script μˆ˜μ • #154

Merged
merged 5 commits into from
Aug 24, 2024
Merged
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
Loading