Skip to content

Commit

Permalink
Merge pull request #2 from KimMinWoooo/feat/chatting
Browse files Browse the repository at this point in the history
Feat/chatting : 채팅 기능을 개발합니다.
  • Loading branch information
KimMinWoooo authored Jul 26, 2024
2 parents 4dee6fa + 1804b44 commit 310481f
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,33 @@ on:
push:
branches:
- main

# Dockerhub에 각 이미지들을 올릴 레포지토리가 필요
# 수정수정수정
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3 # Docker Username, password를 github에 설정 (Settings -> Secrets and vatiables -> Actions secrets)
- run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- run: docker build -t smileajw1004/react-test-app -f ./frontend/Dockerfile.dev ./frontend
- run: docker run -e CI=true smileajw1004/react-test-app npm test

- run: docker build -t smileajw1004/docker-frontend ./frontend
- run: docker build -t smileajw1004/docker-nginx ./nginx
- run: docker build -t smileajw1004/docker-backend ./backend
- run: docker build -t minwoooo3396/react-test-app -f ./frontend/Dockerfile.dev ./frontend
- run: docker run -e CI=true minwoooo3396/react-test-app npm test

- run: docker push smileajw1004/docker-frontend
- run: docker push smileajw1004/docker-nginx
- run: docker push smileajw1004/docker-backend
- run: docker build -t minwoooo3396/docker-frontend ./frontend
- run: docker build -t minwoooo3396/docker-nginx ./nginx
- run: docker build -t minwoooo3396/docker-backend ./backend
# 여기 예제의 경우에는 밑의 3개의 레포지토리를 생성하고 이미지를 푸시하는 상태
- run: docker push minwoooo3396/docker-frontend
- run: docker push minwoooo3396/docker-nginx
- run: docker push minwoooo3396/docker-backend

- name: Generate deployment package
run: zip -r deploy.zip . -x '*.git*'

- name: Deploy to EB
uses: einaregilsson/beanstalk-deploy@v18
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY }}
aws_secret_key: ${{ secrets.AWS_SECRET_KEY }}
aws_access_key: ${{ secrets.AWS_ACCESS_KEY }} # IAM으로 역할 부여하여 받은 엑세스 키와 시크릿 키를 github에 설정
aws_secret_key: ${{ secrets.AWS_SECRET_KEY }} # (Settings -> Secrets and vatiables -> Actions secrets)
application_name: fullstack-docker-app
environment_name: Fullstack-docker-app-env-1
existing_bucket_name: elasticbeanstalk-ap-northeast-2-972153559337
Expand Down

0 comments on commit 310481f

Please sign in to comment.