Skip to content

Commit

Permalink
chore: 빌드 결과물을 EC2에 배포
Browse files Browse the repository at this point in the history
  • Loading branch information
amaran-th committed Feb 6, 2024
1 parent 772689a commit e305fa1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: workflow_dispatch

jobs:
build:
name: 빌드
runs-on: ubuntu-22.04
timeout-minutes: 10

Expand Down Expand Up @@ -62,3 +63,12 @@ jobs:
aws s3 mv --region ${{ secrets.AWS_REGION }} \
${GITHUB_SHA::8}.tar.gz \
${{ secrets.S3_PROD_BACK_LOCATION }}/${GITHUB_SHA::8}.tar.gz
deploy:
needs: build
name: 배포
runs-on: [ self-hosted, label-prod ]
steps:
- name: 쉘 스크립트 실행
run: |
chmod +x /home/ubuntu/deploy.sh
sudo /home/ubuntu/deploy.sh

0 comments on commit e305fa1

Please sign in to comment.