Skip to content

Commit

Permalink
setting: job 도커 이미지, 빌드 같이 진행
Browse files Browse the repository at this point in the history
  • Loading branch information
jaehan4707 authored Jul 21, 2024
1 parent 3764be5 commit 2113c75
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/mimo-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Log in to Docker Hub
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin

build-docker-image:
build-and-push-docker-image:
runs-on: ubuntu-latest
needs: docker-login
steps:
Expand All @@ -78,16 +78,12 @@ jobs:
- name: Build the Docker image
run: docker build -t ${{ secrets.DOCKER_REPO }} .

push-docker-image:
runs-on: ubuntu-latest
needs: build-docker-image
steps:
- name: Push the Docker image
run: docker push ${{ secrets.DOCKER_REPO }}

deploy-ec2-server:
runs-on: ubuntu-latest
needs: push-docker-image
needs: build-and-push-docker-image
steps:
- name: Deploy to EC2 Server
uses: appleboy/ssh-action@master
Expand Down

0 comments on commit 2113c75

Please sign in to comment.