Skip to content

Commit

Permalink
fix: docker-compose.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
sunwupark committed Jan 31, 2024
1 parent 9205e1b commit 9eed222
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ubuntu
username: ec2-user
key: ${{ secrets.KEY }}
script: |
if [ "$(sudo docker ps -aq)" ]; then
Expand All @@ -74,7 +74,7 @@ jobs:
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ubuntu
username: ec2-user
key: ${{ secrets.KEY }}
source: ./docker-compose.yaml
target: /home/ubuntu/
Expand All @@ -83,7 +83,7 @@ jobs:
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ubuntu
username: ec2-user
key: ${{ secrets.KEY }}
script: |
# Create .env file
Expand All @@ -94,19 +94,17 @@ jobs:
# Copy .env file to the project directory
#cp ~/.env /home/ubuntu/.env
## docker compose up
- name: Docker Compose on EC2
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ubuntu
username: ec2-user
key: ${{ secrets.KEY }}
script: |
# Docker 이미지 다운로드
sudo docker pull ${{ secrets.DOCKER_REPO }}/mappin-server
sudo docker pull ${{ secrets.DOCKER_REPO }}/mappin-nginx
sudo docker pull ${{ secrets.DOCKER_REPO }}/meme-service
# sudo docker pull ${{ secrets.DOCKER_REPO }}/mappin-nginx

# Docker Compose 실행
sudo docker-compose up -d
Expand Down

0 comments on commit 9eed222

Please sign in to comment.